exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 1 question 14 discussion

Actual exam question from Microsoft's 70-480
Question #: 14
Topic #: 1
[All 70-480 Questions]

HOTSPOT -
You are developing an airline reservation website by using HTML5 and JavaScript. A page on the site allows users to enter departure and destination airport information and search for tickets.
You have the following requirements:
✑ Users must be able to save information in the application about their favorite destination airport.
✑ The airport information must be displayed in the destination text box whenever the user returns to the page.
You need to develop the site to meet the requirements.
Which lines of code should you use? (To answer, select the appropriate options from the drop-down lists in the answer area.)
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
* retrieve localStorage.destination
* store localStorage.destination

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Tslanger
4 years, 7 months ago
why not use session storage here?
upvoted 2 times
alexivv
4 years, 5 months ago
Because the data has to be retrieved 'whenever' users revisits the page. With session storage, on leaving the page the data is lost
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...