и посмотреть медиа
Prueba de JavaScript - comprobación de conocimientos
и посмотреть медиа
Canal con pruebas para comprobar el conocimiento de JavaScript. Tareas prácticas para la autoevaluación de nivel.
Plataforma para probar habilidades JavaScript. Publica regularmente tareas de dificultad variable, ayudando a identificar lagunas de conocimiento y prepararse para tareas de desarrollo reales.
❗️Что будет на выходе: 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
Открыть канал и посмотреть медиаSolo los usuarios registrados pueden compartir su opinión.
¡Sé el primero en compartir tu experiencia con este recurso!