I struggled quite a bit with this one as I missed the first 3 lessons on Javascript so have been playing catch up.
I did initially get the prompts to work but for some reason as I carried on working, I did that stopped the function to work.
This is the best I could do, I'll be looking to resubmit once I have a better understanding on Javascript