Monday November 9
Daily JS
DOM Manipulation
In the current dom, there is an h2
element with a class of change-me
.
Write code to make this element say "Hi there Javascript" and have red text.
Hello HTML
var change = document.querySelector('.change-me');
change.innerHTML = 'Hi there Javascript';
change.style.color = 'red';
Topics
- OOP
- OOP and the DOM
Code
https://github.com/TIY-LR-FEE-2015-Fall/lesson-04-02
Homework
https://github.com/TIY-LR-FEE-2015-Fall/assignments/14-koans