Módulo 7 de 15 · Mídia
Make console your best friend
Make console your best friend
Console is the place where browser gives us the opportunity to run, debug and inspect the process of our JS code. It's a very common place to live and it's highly used for testing purposes. We can access console directly from the browser developer tools (depending on the browser you use, ctrl + shift + i for most of them).
Through JS script we can run the function console.log() in order to print something directly to the console. What goes inside the parenthesis is exactly what will be printed.