1.

Which is the function used to retrieve a value?(a) get()(b) retrieve()(c) getItem()(d) retrieveItem()The question was asked by my college director while I was bunking the class.This interesting question is from Client-Side Storage in section Server-Side and Client-Side Scripting of JavaScript

Answer»

Right choice is (C) getItem()

EASY explanation: To retrieve a value, pass the NAME to getItem(). The getItem() method of the Storage INTERFACE, when passed a key name, will RETURN that key’s value, or null if the key does not exist, in the given Storage object.



Discussion

No Comment Found

Related InterviewSolutions