How to console log in Javascript


For those who want to know, javascript is a dynamically typed scripting language. How do I print in the console? And where do I find it? You can use a browser like chrome or firefox debugger, or it could be using a text editor like atom vs code or sublime text. Console.log(), the parenthesis at the end of it means it’s a function (or . method with objects). So continuing, to print to the javascript console, for example, a basic “Hello world”. Open up a browser or a text editor(create a .js file), type the string inside of the parenthesis. It looks like this

console.log(“Hello world”);
“Hello world”

That’s it !!