1 minute read
const str = "hello";
for (const s of str) {
console.log(s, typeof s);
}
h string
e string
l string
l string
o string
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.