@DEmanderbag
Posted
Hello Athreya, great solution.
Because this challenge is a component you would usually not use the footer here. Footer is used mostly for copyright data or for some useful links.
I would also look into removing the onclick event from HTML and instead of that move everything to JS. Your approach is not wrong but I think by using document.queryselector you can target any element on the page right from the JS so you can keep your HTML code separated from JS code. Most of the time it's a good idea to have everything related to JavaScript in a JavaScript file. If your code is larger, it would become much harder to follow.
Keep on coding ^^
Marked as helpful