Need help with my code (Silly Story generator)

I need help with my code. Can someone point it out what’s wrong with my code. It’s in line 31 to 34, the replace insertX to itemX.
https://codepen.io/bimobi/pen/OJpdMvd?editors=1010

Hello @Bimo_Deka

you doing great you was even close just a typo
you write

   newStory = newStory.replace(':insertX:',xItem);  // it's ':insertx: with small x

same typo with the rest of replace by the way check this method


maybe it help with replacing x :wink:

hope that help and have a nice day :slight_smile:

ahh i see what i got wrong. Thank you !!

you very welcome :slight_smile: