Logging messages to the console is a very basic way to diagnose and troubleshoot minor issues in your code.
But, did you know that there is more to console
than just log
? In this article, I’ll show you how to print to the console in JS, as well as all of the things you didn’t know console
could do.
If you’ve never used the multi-line editor mode in Firefox, you should give it a try right now!
Just open the console, Ctrl+Shift+K
or F12
, and in the top right you will see a button that says “Switch to multi-line editor mode”. Alternatively, you can press Ctrl+B
.
This gives you a multi-line code editor right inside Firefox.
#javascript #web-development #developer