Sophomore

The function beginning starts the beginning of the story, which loads chapter 1.

This function puts a part of the story on the webpage only if the user selects to investigate the zombies.

The webpage the story gets displayed on. The two buttons decide what text and chapter is displayed.
For Javascript, I learned about the DOM. When the user clicks certain buttons like investigate the zombies, it will run the investigateZombies function, which will change the text and buttons on the page. The beginning function functions like nested functions because a function will keep calling a function and another function until an ending is reached. The user will then have the option to go back to the home page or replay the story. When clicking replay, everything gets removed from the page and the beginning function gets called.
When clicking home, it brings the user back to the home page by changing the URL with Javascript. I also can delete and create element nodes with Javascript. I also can add CSS styling to the newly created element nodes using Javascript. It is important to not hardcode the element nodes for the paragraph and button because it will be recreated and deleted over the course of the story. It is also important because it is bad coding practice.
