JavaScript Tutorial- 14

JavaScript Tutorial- 14

আপনি আপনার ওয়েব সাইটকে ডাইনামিক করতে চাইলে আপনাকে অবশ্যই JavaScript ব্যাবহার করতে হবে। এখানে JavaScript Tutorial এ Variable এর ব্যাবহার দেখানো হয়েছে।

JavaScript Tutorial

Script:

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

NEXT