Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

String to array

const str = "Kamran";
let arr = [];
let k = 0;
for (let i of str) {
  arr[k++] = i;
}
console.log(arr)
Source by 127.0.0.1 #
 
PREVIOUS NEXT
Tagged: #String #array
ADD COMMENT
Topic
Name
4+4 =