Which code segment or segments should you use?

DRAG DROP
You are creating a function named getText().
The function must retrieve information from text files that are stored on a web server.
You need to develop the function to meet the requirement.
Which code segment or segments should you use? (To answer, drag the appropriate command from
the list of commands to the correct location or locations in the work area. Each code segment may
be used once, more than once, or not at all. You may need to drag the split bar between panes or
scroll to view content.)

DRAG DROP
You are creating a function named getText().
The function must retrieve information from text files that are stored on a web server.
You need to develop the function to meet the requirement.
Which code segment or segments should you use? (To answer, drag the appropriate command from
the list of commands to the correct location or locations in the work area. Each code segment may
be used once, more than once, or not at all. You may need to drag the split bar between panes or
scroll to view content.)

Answer:



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Damien

Damien

This answer is at least technically wrong because there is a mismatch between the number of opening and closing curly braces.

no_name

no_name

why can’t be navigator.goelocation.getCurrentPosition(locSuccess, locFail); ?

getCurrentPosition is method for getting user’s position too.

what is the difference between getCurrentPosition and watchPosition?

bigstinkybutt

bigstinkybutt

“As the user moves, the application must update the screen with the new location.” — getCurrentPosition does not continuously monitor the location, whereas watchPosition does.

no_name

no_name

thanks 🙂

Levi

Levi

Damien is right

Sihle

Sihle

Thank you Sandra for the link, the answer is correct