I used prompts to ask questions, if statements to check that their answers matched mine, and alerts to display the user’s current score.
I love that this was a small project — it was small enough that I could embellish it, and overachieve rather than underachieve.
I used the .toUpperCase() method to make sure that “juLy” was accepted as correct, just like “July” or “july” would be. And I used the || or operator to allow multiple answers to the whippet question, which I just had fun with.
I really enjoyed this little project and I hope you enjoy taking the quiz! See it on CodePen or GitHub.
For this project I used prompts to pop up some alert boxes with a series of questions for the user to answer. Then I gathered that input and inserted it into a story in typical Mad Libs fashion. Then I designed the look of the app and placed the content of the Mad Libs story into a div.
With the knowledge Treehouse gave me, I felt really prepared to complete this project, and was pretty easy for me to do so. I love the confidence I feel, going in to a project knowing I am capable, rather than going into something having no idea what I’m doing. This key difference along is huge for me, and is what tells me that Treehouse is working for me.
Have a look at my project on CodePen and GitHub. I hope you have fun with it!
This one was a doozy. I really struggled with the majority of this section, and had to find help online to do many of the lessons.
One thing I really noticed with the structure of the lessons in this section was that they gave way less helpful info when introducing the concepts. fCC is really trying to make their coders independent and resourceful and that intention came through in this section.
I do feel that a lot more could have been explained, or elaborated on, or perhaps just reworded, to make it clearer what we were supposed to do. A few times when I googled what to do, it was actually much easier than I had thought based on the wording of the lesson.
- I like If/Else If statements
- I like bracket notation and indexes
- I like functions
- I like the strict equality operator (because it feels silly to type === and have it actually mean something)
- I like for loops (even though they were some of the most difficult lessons!)
- And I really like inverting regular expressions (like using \S to find all the non-whitespace characters in a string)
I really feel accomplished after finishing this section. Partly because it was a big section and took a long time. Mostly because it was hard and I did it anyway.