Hello MDN,
Working through the JavaScript active learnings (on Arrays - “Printing those products”, currently) and I’m struggling with how to verify that each line of code is accomplishing its objective. I feel like I’m typing code in blind and I’ll only figure out if it all works once I get through the full exercise.
What’s the best way to verify each line is sound before moving along? I’ve moved everything to CodePen and added <div class="output"><ul></ul><p></p></div>
to HTML, but still not really sure how to check individual lines of code as I progress. I’ve tried console.log(variableGoesHere);
in both the iframes and dev consoles, but I seem to be missing something.
The JS struggle is real. Thanks for the help!