Number Methods Flashcards

1
Q

pow(x,y)

A

Returns the value of x to the power of y

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

random()

A

Returns a random number between 0 (inclusive) and 1 (exclusive)

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

round(x)

A

Rounds x to the nearest integer

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

sin(x)

A

Returns the sine of x

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

sqrt(x)

A

Returns the square root of x

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

tan(x)

A

Returns the tangent of x

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

toExponential(x)

A

Converts a number into an exponential notation

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

toFixed(x)

A

Formats a number with x numbers of digits after the decimal point

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

toPrecision(x)

A

Formats a number to x length

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

toString()

A

Converts a Number object to a string

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

valueOf()

A

Returns the primitive value of a Number object

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