up
This commit is contained in:
parent
4ae129054e
commit
ab9ab64bd5
476 changed files with 3370 additions and 532 deletions
|
@ -0,0 +1,17 @@
|
|||
importance: 5
|
||||
|
||||
---
|
||||
|
||||
# Which handlers run?
|
||||
|
||||
There's a button in the variable. There are no handlers on it.
|
||||
|
||||
Which handlers run on click after the following code? Which alerts show up?
|
||||
|
||||
```js no-beautify
|
||||
button.addEventListener("click", () => alert("1"));
|
||||
|
||||
button.removeEventListener("click", () => alert("1"));
|
||||
|
||||
button.onclick = () => alert(2);
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue