Are you ready?
1 questions to solve.
- This quiz goes to full-screen once you press the Start button, or any Next button after exiting the quiz window.
- At the end of the quiz, you are able to review all the questions that you answered wrong and see their explanations.
10to the power
Math.pow()raises its first argument to the second one and so does the exponentiation operator (
**) as applied to its operands.
Math.ceil()rounds the given argument to the smallest integer greater than or equal to it. Thus
1e+3is the same as which of the following numbers?
esymbol is used to denote a number in scientific form.
Infinity - Infinityreturn?
Infinityisn't defined, so subtracting
Infinityfrom it can't be sensibly computed. Therefore, this results in the number
Math.random() * 100returns a number in which of the following ranges?
toPrecision(), which rounds a number to given significant figures, when called with
var a = NaN; console.log(a === NaN);
NaNby comparison with the literal
NaN, as done in the code above. The comparison yields
false(even when the comparison is not strict, using the
+'50'uses the unary plus operator which converts the given operand to a number using the same semantics used by the
Number()function. Hence, the return value of
nullgets converted to the number value
0when passed to
console.log(Math.min(3, null, 10, 2));
Math.min()first converts all of its arguments into a number (using the same semantics as used by
Number()) and then performs the search for the minimum value of these numbers.
nullgets converted into
0. Therefore, in the code above, the minimum number is
0, obtained by the value