function toArray(s) {
let a = [];
for (let i = 0; i < s.length; ++i)
a.push(s.charAt(i));
return a;
}
console.log(toArray('Слово')); // --> [ 'С', 'л', 'о', 'в', 'о' ]
function toArray(s) {
let a = [];
for (let i = 0; i < s.length; ++i)
a.push(s.charAt(i));
return a;
}
console.log(toArray('Слово')); // --> [ 'С', 'л', 'о', 'в', 'о' ]