So I'm trying to split a string to in two different strings
I want to make a function that will take first letter from the string and push it to another string, then take second letter and push it to another string, then restart the loop and start from the place it stopped
Example:
imagine i have this string let string = ['SOMEMESSAGE'];
and i want it to be like this:
let firtsLetters = ['SMMSAE'];
let secondLetters= ['OEESG'];