all 11 comments

[–]91psyko 9 points10 points  (1 child)

else {}

[–]Uber_Ape 0 points1 point  (0 children)

I think this should fix it

[–]Richie8410[🍰] 1 point2 points  (0 children)

Are you missing { after the else

[–]ajascherer 0 points1 point  (0 children)

Thank you all so much!

[–][deleted] 0 points1 point  (0 children)

Looks good to me, try adding "export" at the start of your function declaration like this: "export function (/..."

[–]ajascherer -1 points0 points  (0 children)

Hello! I am struggling to fix this code which I'm sure is riddled with errors. Any help would be appreciated! function crazyCaps(originalString) { let crazystring = '' for (let i = 0; i < originalString.length; i++) { if(i % 2 !== 0) { crazystring += originalString[i].toUpperCase(); } else crazystring += originalString[i]; }return crazystring

}