DEV Community

Cover image for CODE DESCRIPTION/REVIEW
Achilonu Chinwendu Faustina
Achilonu Chinwendu Faustina

Posted on

CODE DESCRIPTION/REVIEW

The capacity to practice and provide a description or review of codes gives you an advantage in your learning process and also a chance to improve.
I'll be giving a description of blocks of code today, and I've shared pictures of them below.

Image description

Image description

The following id were grabbed from html:

  • add-item-btn

  • item-input

  • list.
    An EventListener was added to the addItemBtn such that when triggered, the function at the eventListener pushes the value typed in the ItemInput into the shoppingList which was given an empty array. Again it calls out the render function (render() ) while the render function (function render() ) iterates through the array and creates html for each item on the shoppingList.

Top comments (0)