Закончи сам код на Javascript 😀
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
class Seasons { /** * Seasons creates a seasons object */ constructor() { // ✨ initialize whatever properties are needed } /** * Seasons.prototype.next returns the next season * @returns {string} - the next season starting with "summer" * * EXAMPLE * const seasons = new Seasons() * seasons.next() // returns "summer" * seasons.next() // returns "fall" * seasons.next() // returns "winter" * seasons.next() // returns "spring" * seasons.next() // returns "summer" */ next() { // ✨ implement } } |