WBE_Praktikum_4/jasmine_demo/index.js

12 lines
290 B
JavaScript

const Player = require("./lib/jasmine_examples/Player")
const Song = require("./lib/jasmine_examples/Song")
const meinSong = new Song("meinSong")
const meinPlayer = new Player()
meinPlayer.play(meinSong)
if(meinPlayer.isPlaying){
console.log(meinPlayer.currentlyPlayingSong.title)
}