QuestionQ18

Adobe Analytics Developer Professional Prep Guide

An Adobe Analytics developer needs to let users retrieve a data item from local storage named productName.

Which code should the developer use to do this?

Explanation

localStorage.getItem() retrieves the value stored under a specified string key. Passing productName as that key retrieves the corresponding local-storage item.

Community Discussion

No comments yet. Be the first to start the discussion!