Number Flashcards

Get a fucking job

1
Q

What is _?

A

Numeric separator. Only for readability purposes.

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

What is Number.parseInt()

A

Static method. Analyzes a string argument and returns an integer of the base specified. If the base is not specified, the default is 10. It is the same as the global function parseInt()

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

What is NaN?

A

Is a value representing Not-A-Number. It is a property of the global object.

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

What operations return NaN?

A
  1. Failed number conversions
  2. Math operations where the result is not a real number
  3. Indeterminate form
  4. A method or expression whose operand is or gets coerced to NaN. NaN is contagious.
  5. Other cases where an invalid value is to be represented as a number.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the % operator?

A

Division remainder. Returns the remainder left over when one operand is divided by a second operand. It always takes the sign of the dividend.

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