Console.log is fine and all, but I think Codecademy overuses it. Outside of Codecademy, what can I use as a substitute? Does text(); from processing js work?
If you work with a website you will most probably work directly with the HTML elements, like changing some text or an image on a webpage and even show or hide certain elements like a button for example.
Yes, I think part of the frustration though is doing something where the real world projects you could show would be non existent, other than as a purely academic exercise. Can I build a thousand lines of code showing multiple forms of logic through JS using a web console? Yes, would anyone actually want that as an end product worth the time it took to write a thousand lines of code? No.
We all know how pointless that would be. Of course we would write our code in a text-editor and then test it in the console. Everyone’s workflow is different.
Once we merge JS with HTML/CSS the document becomes the test bed, but we can still inspect variables in the console. It is, after all the de facto debugging environment.
Node.js is introduced in the course and we are instructed on how to install it on our local machine. In the command line we can invoke Node to run our scripts in the shell.