READ Free Dumps For Microsoft- 70-480
Question ID 15006 | You are creating a custom object as described by the following code.
You need to implement the calcArea method.
Which code should you use?
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | D |
Explanation Explanation: Need to refer to .this in the calculation.
Question ID 15007 | You are developing an e-commerce website. Users place products into a shopping cart.
You need to ensure that the shopping cart data is available between browser sessions.
Which object should you use to store the shopping cart data?
|
Option A | clientStorage
|
Option B | localStorage
|
Option C | applicationStorage
|
Option D | sessionStorage
|
Correct Answer | B |
Explanation Explanation: With local storage, web applications can store data locally within the user's browser. HTML local storage, better than cookies. Before HTML5, application data had to be stored in cookies, included in every server request. Local storage is more secure, and large amounts of data can be stored locally, without affecting website performance. Reference: HTML5 Local Storage