From 1c1b8a0b94e270f3ac2383415b1a3f883a40a8e4 Mon Sep 17 00:00:00 2001 From: jorishr Date: Mon, 24 Feb 2020 19:17:02 +0100 Subject: [PATCH] small typo fix element.addEventListener(event, handler[, options]); TO element.addEventListener(event, handler, [options]); --- 2-ui/2-events/01-introduction-browser-events/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2-ui/2-events/01-introduction-browser-events/article.md b/2-ui/2-events/01-introduction-browser-events/article.md index c9db9dfb..2eac62fd 100644 --- a/2-ui/2-events/01-introduction-browser-events/article.md +++ b/2-ui/2-events/01-introduction-browser-events/article.md @@ -216,7 +216,7 @@ Web-standard developers understood that long ago and suggested an alternative wa The syntax to add a handler: ```js -element.addEventListener(event, handler[, options]); +element.addEventListener(event, handler, [options]); ``` `event` @@ -235,7 +235,7 @@ element.addEventListener(event, handler[, options]); To remove the handler, use `removeEventListener`: ```js -element.removeEventListener(event, handler[, options]); +element.removeEventListener(event, handler, [options]); ``` ````warn header="Removal requires the same function"