Why ?? 😭😭 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
21st Feb 2021, 12:25 PM
Carbon dioxide
Carbon dioxide - avatar
4 Answers
+ 10
If you want to make it as an assignment operator, var a = 1 alert(a += 1)
21st Feb 2021, 1:31 PM
Simba
Simba - avatar
+ 4
See it like this a = (+1) Now does it make sense ? the + is not addition, it is the sign of the integer 1
21st Feb 2021, 12:27 PM
Arsenic
Arsenic - avatar
+ 3
Thanks Arsenic Simba for the answer...
21st Feb 2021, 2:54 PM
Carbon dioxide
Carbon dioxide - avatar
+ 1
Arsenic that means, a = +1 (a = 1)
21st Feb 2021, 12:40 PM
Carbon dioxide
Carbon dioxide - avatar