HOTSPOT
You have a Windows Store app. You are reviewing code that caches data.
The code includes the following segment. Line numbers are included for reference only.
01 function setLocaiStorage(value) {
02 var storage = window.localStorage;
03 var value = document.getElement3yId('textToAdd').text;
04 storage.name = 'John';
05 storage.phone = ' 555-555-0100';
06 storage.message = value;
07 }
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.
For each of the following statements, select Yes if the statement is true…
HOTSPOT
You have a Windows Store app. You are reviewing code that caches data.
The code includes the following segment. Line numbers are included for reference only.
<code>
01 function setLocaiStorage(value) {
02 var storage = window.localStorage;
03 var value = document.getElement3yId(‘textToAdd’).text;
04 storage.name = ‘John’;
05 storage.phone = ‘ 555-555-0100’;
06 storage.message = value;
07 }
</code>
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.