Number Flashcards
Get a fucking job
1
Q
What is _?
A
Numeric separator. Only for readability purposes.
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()
3
Q
What is NaN?
A
Is a value representing Not-A-Number. It is a property of the global object.
4
Q
What operations return NaN?
A
- Failed number conversions
- Math operations where the result is not a real number
- Indeterminate form
- A method or expression whose operand is or gets coerced to NaN. NaN is contagious.
- Other cases where an invalid value is to be represented as a number.
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.