We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const body = document.body; const buttons = document.querySelectorAll(".button"); buttons.forEach((button) => { const color = button.getAttribute("id"); button.addEventListener("click", (e) => { body.style.backgroundColor = color; }); });
The text was updated successfully, but these errors were encountered:
I have opened pull request for the same code before. Can I work on this issue.
Sorry, something went wrong.
const buttons = document.querySelectorAll('.button'); const body = document.querySelector('body'); buttons.forEach(function (button) { console.log(button); button.addEventListener('click', function (e) { // console.log(e); // console.log(e.target); body.style.backgroundColor = e.target.id; }); });
why am i able to comment , even if the issue is closed ? is this a new update on G
No branches or pull requests
This is not any issue or something, but I want you to review my code of project 1. In this we don't have to edit any code in the JavaScript file.
I guess this is the fast way to contact you, so I am sending this in the Issue of GitHub.
The text was updated successfully, but these errors were encountered: