input = 123;
const string = x.toString();
console.log(string , typeof(string));
const string = "word";
// method 1
string.split('');
//method 2
[...string];
//method 3
Array.from(string);
const string = "split-by-dash";
const usingSplit = string.split("-");
// [ 'split', 'by', 'dash' ]
const string = "hi there";
const usingSplit = string.split("");
const usingSpread = [...string];
const usingArrayFrom = Array.from(string);
// result
// [ 'h', 'i', ' ', 't', 'h', 'e', 'r', 'e' ]