Predict the output of the following. var a, b;
Predict the output of the following.
var a, b;
a = ”0480″;
b = 2828159;
document.write(a+b);
4 views
1 Answers
The out Put is “04802828159”. That is the string “0480” concatenates(joins) the number 2828159. The output is a string not a number.
4 views
Answered