What will happen when the following code is executed?
const result = 10 / 0; console.log(result);
An error will occur because dividing by zero is not allowed.
The code will run without any output.
The value Infinity will be logged to the console.
Infinity