• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
+ 3

for loops

Hi everyone, pls why is the output of this loop 10? var x = 2; for(i = 0; i < 4; i++) { x += 2; } document.write(x);

javascript
28th May 2021, 3:03 PM
Lara
Lara - avatar
2 Respuestas
+ 5
https://code.sololearn.com/WSb9uaWyk7z8/?ref=app
28th May 2021, 3:28 PM
JaScript
JaScript - avatar
+ 2
Thank you :)
28th May 2021, 3:43 PM
Lara
Lara - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
What does coding means for you?
1 Votes
ok i am devolp website which programing language iam should learn
1 Votes
Query about other courses
0 Votes
how do I delete the card so that my subscription is no longer charged?
0 Votes
Please,how do you send info from a form to another page
0 Votes
What code is used to write a mobile application? С помощью какого (каких) кода написано мобильное приложение?
0 Votes
Pro Monthly Subscription is Cheaper than Annual Subscription ?
0 Votes
ai
0 Votes
Ee
0 Votes