• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

Why this returns 103 and not 102?

var x = 1 for(x; x<=10; x++){ x+=x+100 } console.log(x)

javascriptoperators
19th Jan 2022, 5:42 AM
Theoz
Theoz - avatar
1 Antwort
+ 3
x = 1 x += 101 x++ console.log(x)
19th Jan 2022, 5:49 AM
Mafdi
Mafdi - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
I don't know how to code or what to code
1 Votes
code coach
2 Votes
How do I do audio
0 Votes
Collision bug in player movement — not sure what's wrong
0 Votes
PYTHON AND JAVA
0 Votes
Lua?
1 Votes
I m just begginer, i don't even understand how to use this app.. send help.. im at level 1
0 Votes
Is there a level after intermediate Python?
1 Votes
Does this app support the audio tag?
0 Votes
I dont know what i should do with java script
0 Votes