Script:

  1. <html>
  2. <head>
  3. <title>JavaScript</title>
  4. </head>
  5. <body>
  6. <Script Language=”JavaScript”>
  7. x=”15″;
  8. y=15;
  9. z=5;
  10. a=x==y;
  11. b=x==y;
  12. c=y===z;
  13. write(a);
  14. write(“<br>”);
  15. write(b);
  16. write(“<br>”);
  17. write(c);
  18. </Script>
  19. </body>
  20. </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 7 is a variable x=15.
  • Line number 8 is a variable y=15.
  • Line number 9 is a variable z=5.
  • Line number 10 is a variable a=x==y.
  • Line number 11 is a variable b=x==y.
  • Line number 12 is a variable c=y===z.
  • Line number 13 is a write a.
  • Line number 14 used <br> tag. This tag is a line break.
  • Line number 15 is a write b.
  • Line number 16 used <br> tag. This tag is a line break.
  • Line number 17 is a write c.
  • Line number 18 is a closed JavaScript tag.
  • Line number 19 is a close body tag.
  • Line number 20 is a close html tag.

Leave a Reply

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