a) localStorage.remove(key)
b) localStorage.clear()
c) localStorage.remove()
d) localStorage.clearAll()
Answer: b
Explanation: If we want to delete all the setting we can call localStorage.clear() method, localStorage.remove(key) only removes the key of the value that we have given. Same can be applied with sessionStorage also the syntax will be sessionStorage.clear().
Related Posts
Which option is not available in HTMLMinifier?
HTMLMinifier is written in ________
CSSMin is written in ___________
Which compressor gives maximum GZIPPED compression?
YUI compressor is written in ____________
Which one has the most potential for minification?
For grouping form controls we can use ___________
Join The Discussion