Skryptowy język programowania, stworzony przez firmę Netscape, najczęściej stosowany na stronach internetowych. Twórcą JavaScriptu jest Brendan Eich. Pod koniec lat 90. XX wieku organizacja ECMA wydała na podstawie JavaScriptu standard języka skryptowego o nazwie ECMAScript, aktualnie rozwijaniem tego standardu zajmuje się komisja TC39.
<!DOCTYPE html>
<html>
<body>
<h2> JavaScript Strings </h2 >
<p> You can use quotes inside a string, as long as they don't match the quotes surrounding the string. </p>
<p> id="demo" </p >
<script >
var answer1 = "It's alright";
var answer2 = "He is called 'Johnny'";
var answer3 = 'He is called "Johnny"';
document.getElementById("demo").innerHTML = answer1 + answer2 + answer3;
</script>
</body>
</html>
JavaScript Strings
You can use quotes inside a string, as long as they don't match the quotes surrounding the string.
It's alright
He is called 'Johnny'
He is called "Johnny"