diff --git a/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md b/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md index a38f01645..cf3ff5476 100644 --- a/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md +++ b/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md @@ -1,15 +1,15 @@ -Answer: **1 and 3**. +Jawabannya: **1 dan 3**. -Both commands result in adding the `text` "as text" into the `elem`. +Kedua perintah tersebut mengakibatkan penambahan `text` 'sebagai teks' ke dalam `elem` -Here's an example: +Berikut adalah contohnya: ```html run height=80
+ function clockStop() { + clearInterval(timerId); + timerId = null; // <-- hapus timerID untuk menunjukkan bahwa jam telah dihentikan, sehingga memungkinkan untuk memulainya kembali di clockStart() + } - - + clockStart(); + - - + + -