const str = 'The quick red fox jumped over the lazy dog\'s back.';
let iterator = str[Symbol.iterator]();
let theChar = iterator.next();
while(!theChar.done && theChar.value !== ' ') {
console.log(theChar.value);
theChar = iterator.next();
// expected output: "T"
// "h"
// "e"
}