All fields

“Math & BigInt” in Information Technology

16 questions across 1 technology.

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
11How does BigInt64Array differ from a standard numeric TypedArray? JavaScript › ArrayBuffer, TypedArrays & Binary DataJavaScriptArrayBuffer, TypedArrays & Binary DataAdvanced
12Name a few common TypedArray types and their byte sizes. JavaScript › ArrayBuffer, TypedArrays & Binary DataJavaScriptArrayBuffer, TypedArrays & Binary DataBeginner
13How do you create a Date object representing the current moment? JavaScript › Date, Time & Internationalization (Intl API)JavaScriptDate, Time & Internationalization (Intl API)Beginner
14How do you calculate the difference between two dates in days? JavaScript › Date, Time & Internationalization (Intl API)JavaScriptDate, Time & Internationalization (Intl API)Intermediate
15How do you get a relative time string like '3 days ago' using built-in APIs? JavaScript › Date, Time & Internationalization (Intl API)JavaScriptDate, Time & Internationalization (Intl API)Advanced
16Why can't you use WeakMap for caching results keyed by primitive values like strings or numbers? JavaScript › Map, Set, WeakMap & WeakSetJavaScriptMap, Set, WeakMap & WeakSetAdvanced