This should be `guess = parseInt(prompt(...))` so that the input string will be parsed into an integer, allowing the strict `!==` comparison to work.