InterviewSolution
Saved Bookmarks
| 1. |
What Will Be The Output Of The Code Below? var Bar = True; console.log(bar + 0); console.log(bar + "xyz"); console.log(bar + True); console.log(bar + False); |
|
Answer» The code will output 1, "truexyz", 2, 1. Here's a general guideline for addition OPERATORS: NUMBER + Number -> Addition The code will output 1, "truexyz", 2, 1. Here's a general guideline for addition operators: Number + Number -> Addition |
|