12 lines
290 B
JavaScript
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)
|
|
}
|
|
|