и посмотреть медиа
JavaScript test - knowledge check
и посмотреть медиа
Channel with tests to check JavaScript knowledge. Practical tasks for self-assessment of level.
Platform for testing JavaScript skills. Regularly publishes tasks of varying difficulty, helping identify knowledge gaps and prepare for real development tasks.
❗️Что будет на выходе: class LightMachine { constructor() { this.states = { green: { next: 'yellow' }, yellow: { next: 'red' }, red: { next: 'green' } }; this.currentState = 'green'; } transition() { this.currentState = this.states[this.currentState].next; return this.currentState; } } const lightMachine = new LightMachine(); let result = ''; for (let i = 0; i < 5; i++) { result += lightMachine.transition() + ' '; } console.log(result.trim()); Ответ: yellow red green yellow red JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!