// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup = {
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo":"Easy",
"foxtrot":"Frank",
};
return lookup.val;
// Only change code above this line
return result;
}
// Change this value to test
phoneticLookup[alpha];
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15.
yes, return results is given below the editing above line
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup(val) = {
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo":"Easy",
"foxtrot":"Frank",
};
result= lookup[val];
// Only change code above this line
return result;
}
// Change this value to test
phoneticLookup[alpha];
// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var phoneticLookup = {
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo":"Easy",
"foxtrot":"Frank",
};
result= phoneticLookup[val];
// Only change code above this line
return result;
}
// Change this value to test
phoneticLookup[alpha];
// Setup
function phoneticLookup(val) {
var result = "";
// Only change code below this line
var lookup = {
"alpha":"Adams",
"bravo":"Boston",
"charlie":"Chicago",
"delta":"Denver",
"echo":"Easy",
"foxtrot":"Frank",
};
result= lookup[val];
// Only change code above this line
return result;
}
// Change this value to test
phoneticLookup[alpha];