[Day 33 of 100] 👨🏻💻
The topic was Traversing the DOM. The idea is to grab nearby elements of the element that you have hands on. It's a way of moving from one part of the DOM to another. The concept of it wasn't really hard, so I thought maybe implementing it won't be too hard (or so I thought 😶). The sample coding project was okay because I was following the video but the coding quizzes got me 😑. But it's okay, it's a learning experience. I probably need more practice 😅.
As for the mini sample project for this section, we added a "up" and "down" buttons to move the list around. We implemented it by using the next/previousElementSibling, parentNode, and insertBefore functions. The idea is to reference the parent of the up/down button which is the list item and moved them up(or down) by using the previous(or next)ElementSibling.
I feel like I could've explained that better but I'm terrible at it, my bad 🤦🏻♂️. There's really more to that than what I had said. It's like knowing how it worked but can't explain how in detail, kinda situation. I do still need a more understanding of it tho, I admit.
I'll try to go over it again tom but I'll prioritize to moving on to jQuery so I don't get held on too long.
Hopefully everyone are productive today 😅
#webdeveloper #web #developer #frontend #backend #learntocode #buildtheweb #programmerslife #webdev #programming #programmer #dev #devlife #code #coding #peoplewhocode #codingcommunity #haikyuu #workstation #desksetup #html #css #jonduckett #udemy #teamtreehouse #onepiece #techdegree #buildupdevs #computerscience