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

জাভাস্ক্রিপ্ট console.log() উদাহরণসহ


জাভাস্ক্রিপ্ট console.log() মেথড কনসোলে একটি মেসেজ লেখার জন্য ব্যবহৃত হয়।

উদাহরণ

<!DOCTYPE html> <html> <head> <style>    body {       font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    } </style> </head> <body> <h1>console.log() উদাহরণ</h1> <button class="Btn">এখানে ক্লিক করুন</button> <h3>উপরের বাটনে ক্লিক করলে আপনার কনসোলে আউটপুট দেখতে পাবেন</h3> <script>    let test = {       a:22,       b:'HELLO',       c:44,    }    console.log(test);    console.log('HELLO WORLD'); </script> </body> </html>

আউটপুট

জাভাস্ক্রিপ্ট console.log() উদাহরণসহ

“এখানে ক্লিক করুন” বাটনে ক্লিক করলে −

জাভাস্ক্রিপ্ট console.log() উদাহরণসহ


  1. জাভাস্ক্রিপ্টে অ্যাসিনক্রোনাস ফাংশন উদাহরণসহ ব্যাখ্যা

  2. জাভাস্ক্রিপ্টে ইনহেরিট্যান্স উদাহরণসহ

  3. জাভাস্ক্রিপ্টে ডিপ ক্লোনিং অবজেক্ট উদাহরণসহ ব্যাখ্যা

  4. জাভাস্ক্রিপ্টে DOM-রিলেটেড ভেরিয়েবল কনসোল.লগ (console.log) করা