I made a 5 question quiz!

I completed another challenge project in Treehouse’s JavaScript Basics course. This project was to make a simple quiz.

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.

I wrote a Mad Libs app!

As I wrote about last week, I made the switch from fCC to Treehouse, and I haven’t looked back. Today I want to share with you the first project I made as part of the JavaScript Basics course.

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!


I made a random quote generator!

random lamb saying quotes

One of the challenges on free Code Camp was to make a random quote generator, using a free quote API. This challenge was tricky for me since I wasn’t at all familiar with using APIs (and I’m still not) but with a friend’s help, I pushed through and got it done.

This app also has an option to tweet the random quote, which meant using Twitter’s API as well. This was a cool part of the project because I liked how my code not only output a random tweet to the page and linked to someone’s twitter, but it then input the quote into a tweet, so it’s super easy for the person to tweet it.

Have a look on CodePen and GitHub.