কম্পিউটার টিউটোরিয়াল

জাভাস্ক্রিপ্ট ফাংশনকে অবজেক্ট হিসেবে ব্যবহার করা

জাভাস্ক্রিপ্ট ফাংশনকে অবজেক্ট হিসেবে ব্যবহার করতে নিচের কোডটি চালিয়ে দেখুন:

উদাহরণ

<html>    <head>       <title>User-defined objects</title>       <script>          function book(title, author){             this.title = title;             this.author = author;          }       </script>    </head>    <body>       <script>          var myBook = new book("Amit", "Python");          document.write("Book title is : " + myBook.title + "<br>");          document.write("Book author is : " + myBook.author + "<br>");       </script>    </body> </html>

  1. জাভাস্ক্রিপ্ট কলব্যাক ফাংশন ব্যবহার: একটি গাইড

  2. জাভাস্ক্রিপ্ট ফাংশন ব্যবহার: ধাপে ধাপে গাইড

  3. জাভাস্ক্রিপ্ট ফাংশন থেকে অবজেক্ট রিটার্ন করা

  4. MySQL SUM() ফাংশন কীভাবে ব্যবহার করবেন?