Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var carName1 = "Volvo XC60"; var carName2 = 'Volvo XC60'; var answer1 = "It's alright"; var answer2 = "He is called 'Johnny'"; var answer3 = 'He is called "Johnny"'; document.getElementById("demo").innerHTML = carName1 + "<br>" + carName2 + "<br>" + answer1 + "<br>" + answer2 + "<br>" + answer3; </script> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_datatypes_string by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:24:08 GMT --> </html>
Result:
Try it Yourself - © w3schools.com