HTML CSS Javascript jQuery AJAX PHP Java MORE

JavaScript Data Types

<!DOCTYPE html>
<html>
<body>

<h2>JavaScript Strings</h2>

<p>Strings are written with quotes. You can use single or double quotes:</p>

<p id="pratice"></p>

<script>
var carnumber = "OD02BA1234";
var carnumber2 = 'OD02DA4532';

document.getElementById("pratice").innerHTML =
carnumber + "<br>" +
carnumber2; 
</script>

</body>
</html>



Run it yourself