JavaScript

Tutorial-13

Script:

  1. <html>
  2. <head>
  3. <title>JavaScript</title>
  4. </head>
  5. <body>
  6. <Script Language=”JavaScript”>
  7. write(5&5);
  8. write(“<br>”);
  9. write(10&10);
  10. write(“<br>”);
  11. write(50&25);
  12. </Script>
  13. </body>
  14. </html>

Explain of Script:

  • Line number 1 is a start is a html tag.
  • Line number 2 is a start is a head tag.
  • Line number 3 is a title tag. This page title is “JavaScript”.
  • Line number 4 is a close head tag.
  • Line number 5 start body tag.
  • Line number 6 start JavaScript tag.
  • Line number 10 is a write 5&5.
  • Line number 11 used <br> tag. This tag is a line break.
  • Line number 12 is a write 10&10.
  • Line number 13 used <br> tag. This tag is a line break.
  • Line number 14 is a write 50&25.
  • Line number 15 is a closed JavaScript tag.
  • Line number 16 is a close body tag.
  • Line number 17 is a close html tag.

Script:

  1. <html>
  2. <head>
  3. <title>JavaScript</title>
  4. </head>
  5. <body>
  6. <Script Language=”JavaScript”>
  7. write(5^5);
  8. write(“<br>”);
  9. write(10^10);
  10. write(“<br>”);
  11. write(50^25);
  12. </Script>
  13. </body>
  14. </html>

Explain of Script:

  • Line number 1 is a start is a html tag.
  • Line number 2 is a start is a head tag.
  • Line number 3 is a title tag. This page title is “JavaScript”.
  • Line number 4 is a close head tag.
  • Line number 5 start body tag.
  • Line number 6 start JavaScript tag.
  • Line number 10 is a write 5^5.
  • Line number 11 used <br> tag. This tag is a line break.
  • Line number 12 is a write 10^10.
  • Line number 13 used <br> tag. This tag is a line break.
  • Line number 14 is a write 50^25.
  • Line number 15 is a closed JavaScript tag.
  • Line number 16 is a close body tag.
  • Line number 17 is a close html tag.

Leave a Reply

Your email address will not be published. Required fields are marked *