Performing the operation: let x = 20n + 10;
will:
- result in the string
"20n10"
being stored in the variablex
. - cause the program to abort due to an error.
- result in a value of
30n
being stored in the variablex
. - result in a value of
30
being stored in the variablex
.
Answers Explanation & Hints:
Performing the operation in JavaScript will result in an Uncaught TypeError: Cannot mix BigInt and other types, use explicit conversions.
|