New course! Every coder should learn Generative AI!
Try a free lesson+ 22
The log() method is mainly used to display what you passed as an argument in the JS console of your browser (Inspector < Console)
Very useful to keep track of some statistics in real time or just for debugging purposes