this is the question
Given is a word word. Run through the word and merge every second letter into a new word.
this is the code ive compiled so far,
function strangeWord(word) {
let len = word.length;
let i = 0;
let newWord = word;
if ( i <= len) {
word % 2 == 0;
return newWord;
}
}
the biggest challenge i face right now is to output the desired letters merged into a new word but i am struggling on figuring out what steps to take next.
ive tried assigning some range but its giving me errors. im not sure if i should be using an range or index, im very new to javascript so sorry if my responses to my issues are a bit confusing, thank you for taking the time to read this and providing insight.
user24784650 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1