Find the output

Report a typo

What is the console output of the following code if the user clicks on "OK"? Try not to run the code instead solve the task mentally.

user = prompt("JavaScript is awesome", 1);

if (user == 1) {
    console.log("True");
} else {
    console.log("False");
}
Select one or more options from the list

Create a free account to access the full topic