Files
ValueScript/inputs/passing/stringIndexing.ts
2023-03-13 12:52:33 +11:00

13 lines
301 B
TypeScript

// test_output! [undefined,"🚀","","","","🍹","","","","a","b","c","£","","한","","","🎨","","","",undefined]
export default function () {
const str = "🚀🍹abc£한🎨";
let outputs = [];
for (let i = -1; i <= str.length; i++) {
outputs.push(str[i]);
}
return outputs;
}