0% found this document useful (0 votes)
18 views15 pages

2Q JS Variables and JS Operators

Uploaded by

vsumalpong2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views15 pages

2Q JS Variables and JS Operators

Uploaded by

vsumalpong2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

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

You might also like