Original code:
class Song { name; nextSong; constructor(name) { this.name = name; } /** * @return {boolean} true if the playlist is repeating, false if not. */ isRepeatingPlaylist() { // Your code goes here } } let first = new Song("Hello"); let second = new Song("Eye of the tiger"); first.nextSong = second; second.nextSong = first; console.log(first.isRepeatingPlaylist());
Dashboard
Start Trial
Sign In
Home
Tour
Tests
Questions
Pricing
Resources
Blog
Read Evidence-Based Hiring
Support
Use Cases
ROI Calculator
Integrations
Customers
© TestDome, 2022.