Mad libs game in the javascript

Can’t stand this mad libs code in javascript please someone tell the logic in this code

Please post your code so we can see what you have tried. We are not going to just give you the answers to challenges because that defeats the purpose of the challenge.

You can always click the “Get a hint” button, but I should warn you that it is going to spoil it for you.

If it is the one I think the logic is to create a string using variables