JavaScript 30- Day 15 Study Notes

https://javascript30.com/

Day 15 of JavaScript 30 by Wes Bos involved interactivity with a checkbox and using local storage on the browser. Much of the concepts were familiar to me; using the DOM, working with arrays, and using a toggle function.

I’m getting more familiar with the practice of naming variables at the top of the script tag.

And setting up event listeners at the bottom.

Bos used three functions. The first adding the item name submitted into checkbox format. The item was pushed into an array.

Bos introduced the local storage feature in the browser. Now the items entered into the checkboxes would not disappear when the page refreshed.

The next function added the item name to the inner HTML.

As I entered the code for the above function, I made a typo.

Thus began a 3-hour effort to find the bug in my code. How aggravating! I finally had to walk away from the program. The next morning, I once again went through the code, line by line, character by character…and I found the typo.

The third function toggled the checkbox icons.

If it were not for my typo, I found this lesson straightforward and useful. I will definitely use what I learned in later projects.

Follow my study notes as I progress through JavaScript 30.

--

--

Retired physician, writer, aspiring website designer and developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeffrey Amen

Retired physician, writer, aspiring website designer and developer