= is used to assign values.
+ is used to add values.
The assignment operator = is used to assign values to JavaScript variables.
The arithmetic operator + is used to add values together.
y=5; z=2; x=y+z; |
The value of x, after the execution of the statements above is 7.
0 comments: