+ 3

HTML5: Can't figure out this localStorage question

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(______ , _______ );

25th Sep 2017, 9:11 PM
Elleyne Kase
2 Respostas
+ 6
The answer is simple: "clear"; "b"; "a".
20th Mar 2018, 11:51 PM
Felipe Oliveira
Felipe Oliveira - avatar
+ 1
localStorage.clear (); localStorage. setItem("b" , "a" );
13th Apr 2018, 6:31 AM
Mahnoor Shahzad
Mahnoor Shahzad - avatar