Introduction to JS Flashcards
1
Q
What are the three data values in JS?
A
- Strings
- booleans
- number
2
Q
How do you create single line comments and multi line comments?
A
Single line comment: //Opening Line
Multi line comment: /* */
3
Q
How can you find the remainder after dividing two numbers?
A
6 % 2
4
Q
How can you make the computer generate a random number, and how can you round this to a whole number too?
A
Math.random()
Math.floor(Math.random())