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.

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

JavaScript code that rounds the number down to a whole.

A

Math.floor();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

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

Properties are descriptions the traits of an object. Methods are the actions associated with the object.

A

Just remember

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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