Number Methods Flashcards

(7 cards)

1
Q

constructor()

A

Returns the function that created this object’s instance. By default this is the Number object.

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

toExponential()

A

Forces a number to display in exponential notation, even if the number is in the range in which JavaScript normally uses standard notation.

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

toFixed()

A

Formats a number with a specific number of digits to the right of the decimal.

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

toLocaleString()

A

Returns a string value version of the current number in a format that may vary according to a browser’s locale settings.

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

toPrecision()

A

Defines how many total digits (including digits to the left and right of the decimal) to display of a number.

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

toString()

A

Returns the string representation of the number’s value.

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

valueOf()

A

Returns the number’s value.

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