File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -677,25 +677,25 @@ const sum = eval('10*10+5');
677
677
678
678
---
679
679
680
- ###### 22. How long is cool_secret accessible ?
680
+ ###### 22. Sampai berapa lama kah cool_secret dapat diakses ?
681
681
682
682
``` javascript
683
683
sessionStorage .setItem (' cool_secret' , 123 );
684
684
```
685
685
686
- - A: Forever, the data doesn't get lost .
687
- - B: When the user closes the tab.
688
- - C: When the user closes the entire browser, not only the tab.
689
- - D: When the user shuts off their computer .
686
+ - A: Selamanya, data tersebut tidak akan hilang .
687
+ - B: Saat pengguna menutup tab browser .
688
+ - C: Saat pengguna menutup seluruh browser, tidak hanya tab.
689
+ - D: Saat pengguna mematikan komputernya .
690
690
691
691
<details ><summary ><b >Jawaban</b ></summary >
692
692
<p >
693
693
694
694
#### Jawaban: B
695
695
696
- The data stored in ` sessionStorage ` is removed after closing the _ tab_ .
696
+ Data yang disimpan di ` sessionStorage ` akan dihapus setelah menutup _ tab_ .
697
697
698
- If you used ` localStorage ` , the data would've been there forever, unless for example ` localStorage.clear() ` is invoked .
698
+ Jika anda menggunakan ` localStorage ` , data tersebut akan tersimpan selamanya, kecuali misalnya _ method _ ` localStorage.clear() ` dipanggil .
699
699
700
700
</p >
701
701
</details >
You can’t perform that action at this time.
0 commit comments