What will be the output of the following code?
const str = "Hello"; const chars = [...str]; console.log(chars.length);
ReferenceError
undefined
6
5