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.

You type code in the editor; console.log sends its output to the console below

Log in or create account

IGCSE & A-Level