Why is my code not working properly on other devices?

I’m made a simple javascript script and work well

Here is the code

var input = prompt("Input Your Text: ")
    if(input == "input1") {
        console.log("Input 1")
    } else if (input == "input2") {
        console.log("Input 2")
    } else {
        console.log("Another Input : " + input)
    }
  • if i enter “input1” it will output

Input 1

  • if i enter “my input” it will output

Another Input : my input

The problem is

When my friend in Russia enter “input1” it will output

Another Input : input1

And not

Input 1

Why does this happen?,
and how i fix it?

I really appreciate your answer