You are developing an HTML5 web application that displays customer mailing address
information.
The application loads addresses from a web service by using AJAX. The following code
defines a Customer object and loads address data.
You need to implement the loadAddress function.
Which code segment should you use?

A.
Option A
B.
Option B
C.
Option C
D.
Option D
What is the difference between option c and option d?
0
0
The var is set 🙂
0
0
I also don’t see the difference between option C and D. Can anyone clarify a bit.
0
0
in d case this will be other object, it will be not customer object, it will be owner of $.get (not sure maybe window object)
so correct is C.
0
0
What Vasyl replied, plus…
In C, the code first instantiates an instance of Customer function (with parseAddress function inside). And then parseAddress can be used.
0
0