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
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.