+ 3
Hi rini If you are referring to JavaScript, the console is an object that allows you to send output from your code to the System Console. In the case of Sololearn then console output will appear at the bottom of the output window when you press "Run". So if you do console.log("hello world"); "hello world" will appear at the bottom of the screen. If you use Chrome, then the console is available to you if you press F12. console has some interesting methods, though most people only use console.log(). In particular there is console.dir() which will list out all the properties of a JS object. Also there is console.time(), which you can use to benchmark your code. Full list of methods are here https://developer.mozilla.org/en-US/docs/Web/API/console
1st May 2018, 6:42 PM
Mike Choy
Mike Choy - avatar