Well done!
You have completed Numeric Data Types in JavaScript: Number and BigInt Quiz!
Quiz Question 1 of 5
How does JavaScript handle the division of a BigInt
by a Number, and which of the following best describes the result?
Choose the correct answer below:
-
A
The division results in a
BigInt
if theNumber
is an integer, otherwise, it results in aTypeError
. -
B
JavaScript implicitly converts the
BigInt
to aNumber
and performs the division. -
C
JavaScript throws a TypeError because
BigInt
andNumber
cannot be mixed in arithmetic operations. -
D
The division will return a floating-point number as
Number
.