What will be the output of the following code:
var a, b
a = 5
b = 10
b += a
a++
b--
document.write ("a = " + a + "<br>")
document.write ("b = " + b)
Answers
Answered by
3
Answer:
var a = 10;; var b = 3;; var c = a - b;; document.write(c);; </script> ... JavaScript increment operator ( ++ ) is used to increase a number by 1. ... JavaScript decrement operator ( -- ) is used to decrease a number by 1. ... It will execute the code as long as the while condition returns a value of true
Explanation:
Similar questions