Thus:<syntaxhighlight lang=JavaScript>var x = "World";var compare1 = ("Hello, " +x == "Hello, World"); // Here compare1 contains true.
</syntaxhighlight><syntaxhighlight lang="JavaScript">var x = "world";var compare1 = ("Hello, " +x ==Hello, world"); // Now compare1 contains true.