What will be the output of the following code?
const str = "Hello"; const chars = [...str]; console.log(chars[2]);
"o"
"l"
undefined
"e"