Wednesday, 22 August 2018

Javascript: Statements

Statement is an executable statement, statements in Javascript are terminated using ‘;’.

statements.html
<!DOCTYPE html>

<html>
 <head>
  <title>Variables</title>
 </head>
 
 <body>
  <script type="text/javascript">
   document.write("Hello World" + "<br />");
   document.write("Hello PTR");
  </script>
 </body>
</html>


In the above example, below are the java script statements.
document.write("Hello World" + "<br />");
document.write("Hello PTR");

Previous                                                 Next                                                 Home

No comments:

Post a Comment