๐๐ฎ๐ ๐ฎ๐ญ ๐ผ๐ณ ๐๐ฒ๐ฎ๐ฟ๐ป๐ถ๐ป๐ด ๐ ๐๐ฅ๐ก ๐ฆ๐๐ฎ๐ฐ๐ธ
I spent three weeks learning the MERN stack.
I finished Lecture 7 of the Apna College JavaScript playlist.
I learned to add and remove HTML nodes.
Before, I only changed existing elements.
Now I create elements with JavaScript.
Follow these steps to add new elements:
- Create a new element node in browser memory.
- Example: let newBtn = document.createElement("button").
- Set the text: newBtn.innerText = "Click Me!".
Source: https://dev.to/ali_hamza_589ec7b3eb6688d/day-21-of-leaning-mern-stack-3lb6