Skip to content
← Back to Community
Javascript command ot print to the console?
Profile icon
EdMcDougal

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

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

Voters
Profile icon
ManikumarVasams
Profile icon
DavidWang8
Profile icon
JustARatherRidi
Profile icon
EdMcDougal
Comments
hotnewtop
Profile icon
JustARatherRidi

The function is console.log() :)

Example:

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