I have created a variable from a selected index in an array. Inside the selected index I get a string value. When I step through this I can see the value, but the variable is "undefined". When passing that variable after the creation is completed it remains undefined.
"numResult" is the user defined selection from the array.
var faddress = geocodeResults[numResult].address.value;
showResults.infoTemplate.setContent("<b>Name: " + faddress + "</b>");
geocodeResults
structure ?numResult
andgeocodeResults
.geocodeResults: Array[50] 0: a address: "New York City, New York, United States" attributes: Object location: a score: 100 __proto__: Object