It seems that I’m forever stuck / lost when I try to ‘test’ my code using Chrome’s console to run through it.
Here’s what generally happens:
*When I ‘test’ my code, more often than not the console throws syntax or reference errors, so I know I’m doing it wrong but I don’t know how to fix it.
*Where do you place console.log code and what do you put inside the parentheses? // I’m sorry I know this sounds really stupid…believe me, that’s how I feel – but for whatever reason, I’m lousy at it and need help.
Could someone please explain to me like I’m a 3-year-old (or maybe more like a 1-year-old) how to use the console to test code?
Also could someone kindly share a really basic, beginner-level lesson on how to use the console (maybe more like how to use console.log) to effectively observe and test JS code? Preferably using layman’s terms?