202306-NEA-DZ-FEW/madlibs-bug-slayers

Render Processed Story in DOM

Closed this issue ยท 5 comments

Create a function that takes the processedStory as an argument and renders it to the DOM:

  1. Create a new Branch for this issue from the right-side navigation menu under Development by clicking on Create branch for this issue. (PS: remember! don't forget to change the branch source to dev branch since we are always targeting this branch!).

see how:

image
image
image


    • Create a function renderStory(processedStory) to render the processed story in the DOM.
    • Loop through the processed story array and create elements for each word and its corresponding part of speech.
    • Append these elements to the madLibsEdit and madLibsPreview story containers.

I just added a commit for solving this issue b5b9d45

I would be happy to be assigned to tackle this issue,

Okay no problem, u can refactor the code that I've created

Well done!