Basics Flashcards

1
Q

What’s a variable?

A

A container for storing data values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where in HTML do you insert JavaScript code?

A

Between the <

code tags.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What ways can JavaScript display data?

A

In the following ways:

  • innerHTML
  • document.write
  • window.alert
  • console.log
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s a statement?

A

A set of programming instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the data types in JavaScript?

A
  1. Undefined
  2. Null
  3. Boolean
  4. String
  5. Number
  6. Symbol
  7. BigInt
  8. Object
How well did you know this?
1
Not at all
2
3
4
5
Perfectly