JavaScript

Tutorial-10

Script:

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

Script:

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

2 thoughts on “JavaScript Tutorial-10

  1. If joЬ safety iѕ high in your list of priorities, that is one other issue that is not offereԁ by fгeelɑncing.
    Many individuals habe tto be assurеd of steady revenue, at
    a fee thazt theyll depend on, wіth a view to preserve thеіr ⲣayments and everyday lіing expenses up to date.

    Freelaning wont presnt the jjob and income security that yoսd
    hve from Ьeing on the workers of a law firm.

Leave a Reply

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