Console.log
The console.log() function is your best friend when learning JavaScript. It outputs values to the console, helping you see what your code is doing.
Basic Usage
Loading JavaScript Playground...
Printing Multiple Values
You can print multiple values separated by commas:
Loading JavaScript Playground...
Console Methods
JavaScript has several console methods:
Loading JavaScript Playground...
Exercise: Multiple Outputs
Print your name, age, and a greeting on separate lines:
Loading JavaScript Exercise...
Exercise: Math Output
Use console.log to display a math calculation:
Loading JavaScript Exercise...
التالي · الدرس 3 من 37
Comments
قراءة 1 دقيقة
أنهيت 2 من 37 درسًا

اسأل Byte عن هذا الدرس
محادثة خاصة حول هذا الدرس. قرأ Byte الدرس كاملًا، ويجيب خلال ثوانٍ، ويُظهر القسم الذي تأتي منه كل إجابة. يمكنك السؤال بأي لغة.
الأسئلة والأجوبة
أسئلة عامة حول هذا الدرس. يجيب AI Tutor فورًا بلغتك، ويراجع فريق FreeAcademy الإجابات، ويمكن لكل المتعلمين قراءتها.

