You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's probably something from the original code base where it was intended to split the words differently depending on whether there are an even or odd number of letters. Do you think it is necessary? If not, it should be modified.
if((length % 2) === 0){
start = word.slice(0, word.length/2);
end = word.slice(word.length/2, word.length);
} else{
start = word.slice(0, word.length/2);
end = word.slice(word.length/2, word.length);
}
The text was updated successfully, but these errors were encountered: