Answers for "how to convert string in array javascript"

1

convert a string to array in javascript

// Designed by shola for shola

str = 'How are you doing today?';
console.log(str.split(" "));

//try console.log(str.split(""));  with no space in the split function
//try console.log(str.split(","));  with a comma in the split function
Posted by: Guest on January-17-2021
0

how to turn a string into an array javascript

function reverseString() {
  const myString = 'Hello';
  const splits = myString.split("").reverse().join("");
}
Posted by: Guest on August-03-2021

Code answers related to "how to convert string in array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language