Professional Documents
Culture Documents
HTML
HTML
<HEAD>
<TITLE>My First JavaScript</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
document.write("I love JavaScript");
//-->
</SCRIPT>
</BODY>
</HTML>
-----------------------
ASSIGNMENT:
What do you think happens when you use DOCUMENT.WRITE instead of document.write?
What will be displayed if you don't enclose the text inside write() with quotes?
Write code that prints your name.
Write code that displays It's a good day to die.
What is the correct JavaScript code for displaying the following?
He said, "Welcome to my world."