编程逻辑思路
函数查找对象
function phoneticLookup(val) {
var result = "";
var lookup={
alpha: "Adams",
bravo: "Boston",
charlie: "Chicago",
delta: "Denver",
echo: "Easy",
foxtrot: "Frank"
};
result = lookup[val];
return result;
}
phoneticLookup("charlie");