Basic JavaScript Instructions Flashcards

1
Q

A data type that produces either true or false.

A

Booleans

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

When do you add a semicolon?

A

Semicolons are actually not required at the end of all statements. The only place semicolons are required is when you have multiple statements on the same line. Still, applying semicolons after every statement (even if they’re not on the same line) is considered a best practice.

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

Read-eval-print-loop (REPL)

A

a program that reads code, evaluates, and prints it. By looping, the program goes through a continual cycle of input. The use case for a REPL is to experiment with a language.

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

Undefined

A

a special value in JavaScript to represent an unassigned variable.

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

Arrays

A

a collection of values. In JavaScript, the array can consist of values with varying data types.

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

Objects

A

a data structure that collects data. Uses a key-value structure. A key-value pair is referred to as a property

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

Loops and iteration

A

With for, while, and do-while loops, you can make your JavaScript programs execute code repeatedly.

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