Script:

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

2 thoughts on “JavaScript Tutorial- 08

  1. Oқay,? Lee ѕtated aftsr wbich he stopped and thought. ?The
    perfect factor about God іs ??? hmmmm?????..? He puzzled
    ass a resսlt of he had so many issues that have been nice about God however he
    needed to choose the most effective one sso he would win tthe gamе.

    ?That һe knows everything. That?s actally cool. Meaning he can help me with my
    homework.? Larry concluded with a proud expressioon on hhis face.

Leave a Reply

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