Friday, 25 August 2017

Start With First JavaScript Program Hello World - W3Tricks

First JavaScript Program Hello World


Syntax

<html>
<head>
<title></title>
<script language="javascript" type="text/javascript">
document.write("Hello World!");
</script>
</head>

<body>
<h2>W3Tricks - JavaScript</h2>
</body>

</html>
  • document.write is used to print string, like printf in c language
  • JavaScript is a case-sensitive language.

0 comments:

Post a Comment