Merge pull request #558 from ZhengHe-MD/patch-2

Update article.md
This commit is contained in:
Ilya Kantor 2017-05-10 16:19:13 +03:00 committed by GitHub
commit 4f775aa398

View file

@ -388,8 +388,8 @@ Let's make our message disappear after a second:
document.body.append(div);
*!*
setTimeout(div => div.remove(), 1000);
// or setTimeout(div => document.body.removeChild(div), 1000);
setTimeout(() => div.remove(), 1000);
// or setTimeout(() => document.body.removeChild(div), 1000);
*/!*
</script>
```