string by jamna August 04, 2011 JavaScript var s1 = "hello"; var s2 = "hell" + "o"; if (s1 == s2) document.write("Strings compared by value");