What is console log
The console.log()
is a function in javascript that helps developers print variables to the browser's console. It prints strings, numbers, and objects to make debugging easier.
Printing text
To print text, just pass a string inside console.log()
function. Note that characters in function names are case-sensitive in javascript.
Javascript
Loading editor...