2022-10-20 10:56:45 +02:00
|
|
|
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)
|
2022-10-20 12:53:02 +02:00
|
|
|
}
|
|
|
|
|