console.log()
noun
say it: “KON-sohl LOG” /ˈkɒnsoʊl lɒɡ/
The JavaScript method that prints a value to the console, for checking what code is doing.
What does console.log() do in JavaScript?
console.log() — A method that writes a value to the runtime's development console.
const status = "Ready";
console.log(status); // Ready
In a sentence
- “I added console.log(total) to see what the total was.”
Level: Novice · More JavaScript terms at this level
Updated