16 questions for “Math & BigInt”

Found in 1 field. Select a question to see its full answer.

Information Technology

16 questions in 1 technology

#QuestionTechnologyTopicLevel
1What are some commonly used Math object methods? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntBeginner
2What is BigInt and how do you create one? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntIntermediate
3Why is BigInt generally the wrong tool for representing monetary amounts with decimals, like $19.99? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntAdvanced
4How do bitwise operators like >>>, &, and | behave differently on BigInt versus Number? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntAdvanced
5Why does 0.1 + 0.2 not equal 0.3 exactly in JavaScript? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntBeginner
6What does Number.isInteger() check, and how is it different from typeof? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntBeginner
7What is Number.MAX_SAFE_INTEGER and what breaks beyond it? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntIntermediate
8Why does 9007199254740993n + 1 throw a TypeError, but 9007199254740993n + 1n does not? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntIntermediate
9Why is Number.parseFloat('123abc') valid but Number('123abc') returns NaN? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntAdvanced
10How do you correctly compare two floating-point numbers for 'close enough' equality? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntAdvanced