Javascript Variables Flashcards
1
Q
What does the = (equals) operator do in Javascript?
A
It’s an assignment operator which sets a value to a variable.
2
Q
Which keyword is used to declare a variable in Javascript?
A
Var
3
Q
Which characters is a Javascript variable allowed to begin with?
A
Uppercase, lowercase, underscore, and $.
4
Q
What are quotation marks used for in JavaScript?
A
For strings.
5
Q
What is the purpose of strings in JavaScript?
A
Storing any sort of text data.
6
Q
What is the purpose of booleans in JavaScript?
A
Logic, so a true/false value.
7
Q
What is the purpose of numbers in JavaScript?
A
Using it to calculate quantities.
8
Q
What does null mean in JavaScript?
A
Null is an intentional absence of a value.