We're going to make a sticky note creator that takes a color and a message and adds that colored box to the DOM with an ordinal number. Here's what our final product might look like:
Figure 6.9 Final product
Take a look at the starter code: https://github.com/PacktPublishing/Hands-on-JavaScript-for-Python-Developers/tree/master/chapter-6/stickies/starter-code.
Your goal is to recreate this functionality. Here are two methods we haven't yet covered for you to research:
- document.createElement()
- container.appendChild()