• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
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 Odpowiedź
+ 3
x = 1 x += 101 x++ console.log(x)
19th Jan 2022, 5:49 AM
Mafdi
Mafdi - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Issue with Sololearn Module Quiz Despite Correct Answers
2 Votes
I need help to solve this
0 Votes
Project
0 Votes
Engineer Cloud
0 Votes
How to add comment in python?
0 Votes
Lua?
1 Votes
How do we code calculator
1 Votes
Hey what the research process order for them that I am telling you please order them and tell me answer
0 Votes
Ayuda para insertar la imagen de portada y las melodías a mi álbum alguien sabe cómo
0 Votes