0
Help me, im stuck in this exam.
Drag and drop from the options below to clear all values stored in the localStorage. Then store "a" using the key "b". localStorage.......... (); localStorage. setItem(....... , ....... );
5 odpowiedzi
+ 5
According to the 3rd slide:
https://www.sololearn.com/learn/HTML/2197/?ref=app
You clear the values using the .clear() method provided by localStorage.
.setItem()'s usage is:
localStorage.setItem(key, value);
So the answer should be pretty obvious.
+ 2
Had problems with that question as well at first..but it is pretty easy..
You have to read it really carefully.
CLEAR all values in the localStorage ===> localStorage:"clear"()
Store "a" using key "b" = key="b" // value="a" ====> localStorage:setItem("b","a");
+ 1
clear
b, a
0
clear
b, a
0
clear
b,a