The code: const stateCodeLookup = stateCode => { const states = [ny,wa, ca]; states.push(nj); for (let i
Fantastic news! We've Found the answer you've been seeking!
Question:
The code:
const stateCodeLookup = stateCode => {
const states = ["ny","wa", "ca"];
states.push("nj");
for (let i = 0; i
if (states[i] ==stateCode) {
return true;
}
}
return false;
};
Based on the code above,what is the value of thestates.lengthwhen theforloop's condition is evaluated?
Your answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: