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
The division will return a floating-point number as
Number
. -
C
JavaScript throws a TypeError because
BigInt
andNumber
cannot be mixed in arithmetic operations. -
D
JavaScript implicitly converts the
BigInt
to aNumber
and performs the division.