Computer Science, asked by Ebr4h134buzar, 3 months ago

Find the output
script language=JavaScript
document.write(2+5+"8");
script

Answers

Answered by swastikrout1973
0

The Output would be 15 written on the webpage.

Answered by atrs7391
0

The output will be:

78

as the program will add 2 and 5 and will print it with 8 which is a string here.

so 8 will not add up.

output = 78

Similar questions