Performing the operation: let x = "Alice" + 10;
will result in:
- the program execution to abort due to an error.
- the value
NaN
of Number type to be stored in the variablex
. - the value
15
of Number type to be stored in the variablex
. - the value
"Alice10"
of String type to be stored in the variablex
.
Answers Explanation & Hints:
In JavaScript, when you use the In the code snippet |