JavaScript Tutorial -03

javascript tutorial

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

Code:1

  1. <html>
  2. <head>
  3. <title>javascript</title>
  4. </head>
  5. <body>
  6. <script language =”javascript”>
  7. x=75;
  8. y=5;
  9. write(x%y);
  10. </script>
  11. </body>
  12. </html>

Explain of coding :

  • Line number 1 is a start is a html tag.
  • Line number 2 is a start head tag
  • Line number 3 is a title tag. This page title is “JavaScript”.
  • Line number 4 is a close html tag.
  • Line number 5 start body tag.
  • Line number 6 is a variable x=75.
  • Line number 7 is a variable y=5.
  • Line number 8 is a variable add(x/y) & result write.
  • Line number 9 is a closed JavaScript tag.
  • Line number 10 is a close body tag.
  • Line number 11 is a close html tag.

Code:1

  1. <html>
  2. <head>
  3. <title>javascript</title>
  4. </head>
  5. <body>
  6. <script language =”javascript”>
  7. x=60;
  8. y=5;
  9. write(x%y);
  10. </script>
  11. </body>
  12. </html>

Explain of coding :

  • Line number 1 is a start is a html tag.
  • Line number 2 is a start head tag
  • Line number 3 is a title tag. This page title is “JavaScript”.
  • Line number 4 is a close html tag.
  • Line number 5 start body tag.
  • Line number 6 is a variable x=75.
  • Line number 7 is a variable y=5.
  • Line number 8 is a variable add(x%y) & result write.
  • Line number 9 is a closed JavaScript tag.
  • Line number 10 is a close body tag.
  • Line number 11 is a close html tag.

NEXT