Lines of code that Javascript will intentionally ignore.
Comments
In computer science, what is data?
Anything that is meaningful to the computer
How many different data types does Javascript have?
7
What does string mean?
Any sort of text
What is number?
A number
What is undefined?
Something that hasn’t been defined
What is null?
Nothing
What is a boolean?
True or false
Symbol
An immutable primitive value that is unique
What is an object?
Stores a lot of different key value pairs
Where do you set data?
Into a variable
What does a variable allow computers to do to data?
Store and manipulate it in dynamic fashion
How do you declare a variable?
var keyword
What is it common to set something to?
A string
How many ways can you declare a variable?
What are they?
3
Var, let, const
Where can var be used?
Throughout the entire program
Where can let be used?
Within the scope of where you declared it
What is const?
A variable that can never change
What happens if you try to change a const?
ERROR
What is the equal sign?
Assignment operator
How do you assign a variable?
var (blank);
Why should you use a semicolon?
So you know where the end of the line is
var b = 2;
What does this line mean?
2 is being assigned to B.
How would you assign 7 to a?
a = 7;