If i write "40"+20+30 what is his output. second i write 20+30+"50" what is his output . 3 statement i write 20-"40"+60 output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If i write "40"+20+30 what is his output. second i write 20+30+"50" what is his output . 3 statement i write 20-"40"+60 output

this is concatenation operator. JavaScript question

13th Apr 2017, 6:11 PM
manoj chauhan
manoj chauhan - avatar
4 Answers
+ 8
The output of "40"+20+30 is 4050 The output of 20+30+"50" is 5050 The output of 20-"40"+60 is 40
13th Apr 2017, 6:21 PM
Sachin Artani
Sachin Artani - avatar
+ 5
402030 5050 40
13th Apr 2017, 6:20 PM
Ashwani Kumar
Ashwani Kumar - avatar
+ 4
1. 402030 2. 5050 3. Error
13th Apr 2017, 6:16 PM
Meharban Singh
Meharban Singh - avatar
+ 1
first concat sign is( +)sign if I doing - that's means it is not concatenation operator thanks for answers
13th Apr 2017, 6:28 PM
manoj chauhan
manoj chauhan - avatar