Number Methods Flashcards

1
Q

Number.MAX_VALUE

A

Returns the largest number possible in JavaScript

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

Number.MIN_VALUE

A

Returns the smallest number possible in JavaScript

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

Number.NEGATIVE_INFINITY

A

Represents negative infinity (returned on overflow)

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

Number.NaN

A

Represents a “Not-a-Number” value

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

Number.POSITIVE_INFINITY

A

Represents infinity (returned on overflow)

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

isFinite()

A

Checks whether a value is a finite number

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

isInteger()

A

Checks whether a value is an integer

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

isNaN()

A

Checks whether a value is Number.NaN

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

isSafeInteger()

A

Checks whether a value is a safe integer

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

toLocaleString()

A

Converts a number into a string, based on the locale settings

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

toString()

A

Converts a number to a string

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

valueOf()

A

Returns the primitive value of a number

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