I'm trying to print text and the defined variables using the document.write function in Notepad++ and JavaScript. I can't get anything to show up in my web browser when I open the .html file. I'm new to JavaScript. Here's my code.
<html>
<body>
<script> var x == 23 ; var y == 55 ; var z == var x + var y ;</script>
<script> document.write("The sum of x + y" + z +<br>);</script>
<script> document.write("The sum of x + y = " + z + <br>);</script>
<script> document.write("The sum of x + y = " + ( x + y) + <br>);</script>
<script> var x = "Bob Dylan" , var y = "is enrolled in COP 2500" , var z = "with Professor Whiting, she is the BEST!"</script>
<script> document.write( x + y + z);</script>
</body>
</html>