Week 4- JavaScript Data types and Variables Flashcards
1
Q
What are three commonly used types of data?
A
Number, text and Boolean
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)
3
Q
What is another term for text data?
A
A string
4
Q
How do you tell Java that something is a string?
A
By using “ “ around the text eg “Hello”
5
Q
What is a reversed word?
A
A name that you cannot use for a variable in JavaScript eg ‘var’