Variables Flashcards

(14 cards)

1
Q

What is data?

A

Anything that is meaningful to the computer

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

Name the 7 different DATA TYPES

A

Undefined, null, boolean, string, symbol, number and object

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

Can computers perform mathematical operations on a string?

A

Yes!

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

Can computers perform mathematical operations on a number?

A

No!

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

What do variables allow computers to do?

A

Variables allow computers to store and manipulate data in a dynamic fashion

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

Which of the 7 different data types can be stored in a variable?

A

Any of them!

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

What is the means and ends of variables?

A

Variables are a means to have a simple same represent certain and specific data that we want to refer to

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

What is the difference between computer variables and mathematical variables?

A

Computer variables can store different values at different times!

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

Variables names can be made up of numbers, letter, and ‘$’ or ‘_’ but cannot contain or start with what?

A

Variables cannot contain spaces and start with a number!

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

In JavaScript, what do we use to store a value in a variable?

A

The “assignment” operator

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

Assignment always goes from “____” to “____”.

A

Right to left!

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

When JavaScript variables are declared, they have an initial value of “____”

A

Undefined!

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

If you do a mathematical operation on an ‘undefined’ variables, your result will be “___”

A

‘Nan’!

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

In JavaScript, all variables and function names are “____”“____”

A

Case sensitive

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