• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
0

What happened here?

var a=0 for(b=1;b<=5;b+=a){ document.write(b) a++ }

javascript
17th Jul 2020, 9:01 PM
Juancho
Juancho - avatar
1 Respuesta
+ 1
Well it simply writes b values to document and increment a by 1
17th Jul 2020, 10:58 PM
Abhay
Abhay - 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
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
4 Votes
Python intermediate help with dictionaries
0 Votes
Marquee
1 Votes
What are the advantages and disadvantages of using let vs var when declaring variables in JavaScript?
0 Votes
Any Advise?
1 Votes
RUST'S FUTURE
1 Votes
How far do courses go on Sololearn?
0 Votes
Popsacles Aufgabe
1 Votes
I'm about to make a complex calculator in python
0 Votes
Button In C++
1 Votes