Basics Flashcards
1
Q
What’s a variable?
A
A container for storing data values.
2
Q
Where in HTML do you insert JavaScript code?
A
Between the <
code tags.
3
Q
What ways can JavaScript display data?
A
In the following ways:
- innerHTML
- document.write
- window.alert
- console.log
4
Q
What’s a statement?
A
A set of programming instructions.
5
Q
What’s JavaScript syntax?
A
It’s the set of rules for how core is constructed:
How to declare variables: define the variables that will store your values.
How to assign values: store data values within your set variables.
How to compute values: using the variables with their stored values, define the logical operations executed on the variables.
6
Q
What are the data types in JavaScript?
A
- Undefined
- Null
- Boolean
- String
- Number
- Symbol
- BigInt
- Object