Assigning Values to Variables
-
Alpha and numeric: +, =
-
Numeric: +=, -=, ++, --
-
Assignment, increment, decrement.
-
Position of increment, decrement
-
If students = 31, what will be the outcome of the
following statements?
document.write(students++);
document.write(++students);
document.write(students--);
document.write(--students);
students += 5;
students -= 10;
students = students + students;
-
More operations to come.
-
Example: Global vs. Local
Data Types in JavaScript
Home
Internet II: Day 2