PrepAway - Latest Free Exam Questions & Answers

Which lines of code should you use?

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.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

One Comment on “Which lines of code should you use?

  1. anii says:

    Exp.:
    -The localStorage object stores the data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or year.
    -The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session. The data is deleted when the user closes the specific browser tab.
    (“The airport information must be displayed in the destination text box whenever the user
    returns to the page.”)




    0



    0

Leave a Reply