JS Numbers Flashcards

1
Q

Number.isFinite(value)

A

Returns true if the value is a finite Number, otherwise it returns false

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

Number.isInteger(value)

A

Returns true if the value is an integer Number, otherwise it returns false

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

Number.isNaN(value)

A

Returns true if the value is Number.NaN, otherwise it returns false

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

Number.isSafeInteger(value)

A

Returns true if the value is a safe integer Number, otherwise it returns false

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

number. toExponential(?x)
x: An integer between 0 and 20 representing the number of digits in the notation after the decimal point. If omitted, it is set to as many digits as necessary to represent the value

A

Returns a String, representing the number as an exponential notation (i.e. 5.568e+0)

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

number.toFixed(?x)

x is the number of digits after the decimal point. Default is 0 (no digits after the decimal point)

A

Returns a String, representing a number, with the exact number of decimals

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

number. toPrecision(?x)

x: The number of digits. If omitted, it returns the entire number (without any formatting)

A

Returns a String, representing a number formatted to the specified precision

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

number.toString(?radix)

A

Returns a String, representing a number

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

number.valueOf()

A

Returns a Number, representing the primitive value of a number

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