Week 4- JavaScript Data types and Variables Flashcards

1
Q

What are three commonly used types of data?

A

Number, text and Boolean

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

What are the forms that numerical data can come in?

A

Fractional (or floating point numbers) eg 3.1476 and whole (also known as intergers)

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

What is another term for text data?

A

A string

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

How do you tell Java that something is a string?

A

By using “ “ around the text eg “Hello”

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

What is a reversed word?

A

A name that you cannot use for a variable in JavaScript eg ‘var’

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