Elements of a simple program
Variable declaration
Modifying the value of a variable:
More Assignment Statements
CORRECT var counter, sum; counter = 20; counter = parseInt(counter); sum = counter + 6; |
INCORRECT var counter, sum; counter = 12; sum = counter + 6; |
Output