loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
let number = Number(prompt('what is your favorite number'));
let x = number + 1;

if (number == 42) {
  response = "Yay! That's my favorite too!";
} else if (number < 42) {
  response = "Eh, that's OK but " + x + " would be even better";
} else {
  response = "LAME. That number is too large!";
}

console.log(response);
Native Browser JavaScript