What value is printed when executing the following code?
const strings = ['one', 'two', 'three'];
const lengths = strings.map(s => s.length);
console.log(lengths[2]);
What value is printed when executing the following code?
const strings = ['one', 'two', 'three'];
const lengths = strings.map(s => s.length);
console.log(lengths[2]);