JavaScript Tutorial-17

JavaScript Tutorial-17

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

JavaScript Tutorial

Script: 17

  1. <html>
  2. <head>
  3. <title>JavaScript</title>
  4. </head>
  5. <body>
  6. <Script Language=”JavaScript”>
  7. var a=10;
  8. var b=50;
  9. write(a&=b); “&=” Bitwise and assignment Operator
  10. write(“<br>”);
  11. write(a<<=b); “<<=” bitwise left shift operator
  12. write(“<br>”);
  13. write(a>>=b); “>>=” bitwise right shift operator
  14. write(“<br>”);
  15. write(a>>>=b); “>>>=” unsinged right shift Operator
  16. write(“<br>”);
  17. write(a^b); bitwise XOR operator
  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 var a=10;
  • Line number 8var b=50;
  • Line number 17 is a write(a&=b) “&=” Bitwise and assignment Operator.
  • Line number 18 used <br> tag. This tag is a line break.
  • Line number 19 is a write (a<<=b), “<<=” bitwise left shift assignment operator.
  • Line number 20 used <br> tag. This tag is a line break.
  • Line number 21 is a write (a>>>=b), “>>>=” unsinged right shift Operator.
  • Line number 22 used <br> tag. This tag is a line break.
  • Line number 23 is a write (a^b), bitwise XOR operator.
  • Line number 24 used <br> tag. This tag is a line break.
  • Line number 25 is a write (q).
  • Line number 26 is a closed JavaScript tag.
  • Line number 27 is a close body tag.
  • Line number 28 is a close html tag.

NEXT