'good_luck_buddy'.split(/_(.*)/s) ['good', 'luck_buddy', ''] // ignore the third element
const str = 'Hello'; const chars = str.split(''); console.log(chars[0]); // expected output: "H"