JS Variables
JS Operators
JAVA
Function
Variables
s
Operator
Objects
s
Data
Events
Types
JAVA
Array
Strings Method
String Array
Methods Sort
Arrays Dates
Variables
1. Create a variable called carName
and assign the value Volvo to it.
2. Create a variable called x, assign
the value 50 to it.
3. Display the sum 5 + 10, using two
variables: x and y
4. Create a variable called z, assign x
+ y to it, and display the result in an
alert box
5. On one single line, declare three
variables with the following names and
values:
firstName= “John”
lastName= “Doe”
age= 35
ARITHMETIC OPERATORS
Are used to perform arithmetic on
numbers
Javascript Assignment Operators
Addition assignment operator (+=), adds a
value to a variable
EXERCISES
EXERCISES
EXERCISES