You are on page 1of 13

< > iLoveCoding avaScript heatsheet

age

earn ava cript orrectly ( ideo course) https: ilovecoding.org courses s

1 Seven ypes 2 Basic Vocabulary

{
Variable Operator
. tring "Any text" A named reference to perators are reserved words that
Six rimitive ypes

a value is a variable. perform action on values and variables.


. umber 123.45
Examples: in typeof ...
. oolean true or false
. ull null { Statement
. nde ned undefined var a = 7 + "2"; A group of words, numbers
and operators that do a

{
. ymbol Symbol somet in task is a statement.

Note: var, let &


7. b ect ey value const are all Keyword / reserved word
Array 1 "text" false valid keywords to Any word that is part of Expression
declare variables. the vocabulary of the
unction function name The difference A reference, value or a
between them is
programming language is group of reference(s)
covered on page 7 called a keyword and value(s) combined
of this cheatsheet. (a.k.a reserved word). with operator(s), which
Ob ect Examples: var if for... result in a single value.

An ob ect is a data type in var user =


ava cript that is used to store
a combination of data in a
simple key value pair. Thats it.
name
year f irt
"A i

calculateA e
Ali"
1
function
{ Value
These are the
values of the
respective keys
ethod
f a key has a
function as a
value, its called
Key some code to calculate a e in user ob ect. a method.
These are the
keys in user ob ect.

iLoveCoding
"Don't just learn JavaS r t e o e a ull Sta JavaS r t Develo er" https: i ove oding.org
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding
iLoveCoding

iLoveCoding

You might also like