Starlit Daily

📚 › JavaScript: make pages do things

1. Printing with console.log

console.log prints a value. Text goes inside quotes, such as "Hello". Each call prints on its own line.

Comments start with // and the computer ignores them. Use comments to explain your code.

Show example

// This line is a comment
console.log("Hello");

✍️ Your turn

Print the text Hello, Dhaka.

← Back to course