JSFiddle - React, Tailwind, and code Playground

by cncent454518

JavaScript

function str(str){
    str.split('')
    for(let i=0 ;i<=str.length;i++){
        let result  = []
        result.push(str[i]);
    }
    console.log(result);
}
str('hello');