Ask coding questions

← Back to all posts
Javascript command ot print to the console?
EdMcDougal (2)

What is the command to print to the console in the repl for javascript?

Something like "print" in python on "echo" in Bash.

Commentshotnewtop
JustARatherRidi (190)

The function is console.log() :)

Example:

console.log(10);
// Prints out '10' to the console