Let’s understand Undefined X 1 with the help of the following examples.
Example 1: In this example, we are initializing a with undefined, then multiplying a with 1 to see the result of Undefined X 1.
Explanation: The above example is an Indeterminate form operation, we are multiplying 1 with undefined, undefined being a keyword is not a valid number(value is not even initialized). Now multiplying it with some number will result in NaN.
Example 2: In this example, we are trying to parse a string to an integer, it will result in NaN.