0
What is the output of the following JavaScript code?
let x = 10;
if (x > 5) {
console.log("Greater");
} else {
console.log("Smaller");
}- A"Smaller"
- B"undefined"
- C"Greater"
- DError
Correct answer: C
let x = 10;
if (x > 5) {
console.log("Greater");
} else {
console.log("Smaller");
}