Ask coding questions

← Back to all posts
2
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
2
JustARatherRidi (185)

The function is console.log() :)

Example:

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