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