Skip to content

console.log and comments

The language of the web

  • JavaScript runs inside every web browser. It makes pages do things — buttons, games, maps, chat.
  • console.log(...) prints a message to the console, a window for text output.
  • Anything after // is a comment. JavaScript ignores it — it is a note for humans reading the code.

console.log("Hi!") in the editor runs and prints Hi! in the console

Handout

Log in or create account

IGCSE, A-Level & AP