New course! Every coder should learn Generative AI!
Try a free lesson0
Fill in the blanks to clear all values stored in the localStorage. Then store "a" using the key "b".
Fill in the blanks to clear all values stored in the localStorage. Then store "a" using the key "b". localStorage.____(); localStorage. setItem(___,____); Option
2 Answers
+ 2
This is what I found to work.
***********************************
localStorage.clear()
localStorage.setItem("b","a");
***********************************
0
localStorage.clear();
localStorage.
setItem(a,b);