Update article.md
This commit is contained in:
parent
686ae5247f
commit
97f6ce2fde
1 changed files with 2 additions and 2 deletions
|
@ -388,8 +388,8 @@ Let's make our message disappear after a second:
|
||||||
|
|
||||||
document.body.append(div);
|
document.body.append(div);
|
||||||
*!*
|
*!*
|
||||||
setTimeout(div => div.remove(), 1000);
|
setTimeout(() => div.remove(), 1000);
|
||||||
// or setTimeout(div => document.body.removeChild(div), 1000);
|
// or setTimeout(() => document.body.removeChild(div), 1000);
|
||||||
*/!*
|
*/!*
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue