Learning JavaScript: DOM Manipulation and CSS Styles

Day 2 of my JavaScript journey Today I explored CSS style manipulation using JavaScript and deepened my understanding of how the DOM works. I learned that to update content or properties in the DOM, we use the assignment operator (=). When modifying CSS styles through JavaScript, values must be written as strings and include appropriate units (e.g., "20px", "2rem"). I also learned that the dot (.) is used in querySelector() when selecting elements by their class name. Small concepts, big progress.. #JavaScriptJourney #LearningToCode

To view or add a comment, sign in

Explore content categories