slide code mismatch with what the demo button really does in javascript lecture!!
Closed this issue · 1 comments
alirezaAsadi2018 commented
Hi! In 47.2, I expect the onclick="document.body.style.backgroundColor = this.innerHTML;"
for Green button to change the background color of the body
as the code declares, but when I click it here: 47.3, it just changes its own color:
I suggest that we change 47.2 to: onclick="this.style.backgroundColor = this.innerHTML;"
1995parham commented
Thanks for mentioning this. I have fixed it.