Intermediate JavaScript Flashcards
1
Q
JavaScript code that generates a random number.
A
Math.random(); generates a 16 decimal place number between 0 - 0.9*16.
2
Q
JavaScript code that rounds the number down to a whole.
A
Math.floor();
3
Q
What is the difference between a triple equal sign and a double equal sign?
A
A triple equal sign looks for strict equality including the data type whereas double equal signs exclude data types.
4
Q
Properties are descriptions the traits of an object. Methods are the actions associated with the object.
A
Just remember
5
Q
You can tell the difference between a property and a method because methods have a set of parenthesis next to it. eg.) click()
A
Just remember