Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

How can I build games for my web app (like duolingo has)?

Hi everyone, I want to build a web app where people can play simple games to learn new things. I am thinking of drag and drop games, little quizes, type-in questions etc. (stuff similar to ones in duolingo) Can I just rely on javascript and jquery?

2 Answers

Bobby Verlaan
Bobby Verlaan
29,837 Points

Hi Can,

If you just want to let people play your games, you can rely on javascript and jQuery to realize drag and drop games, little quizes and type-in questions. Meaning, you need to write some html/css too ofcourse, to make things visual on the page. In this way you can create a landingpage, change elements on a page, count the correct answers and show messages based on ones score. However, this all will happen client side, which means when people leave the page and come back later all their scores are gone.

If you want to save the results people get in your games you'll apply some backend technology as well to store the information. This could be node/express (which is server side JavaScript), PHP, Python or Ruby in combination with a SQL database where your can save the results and retrieve them when people come back later.

Hope this helps!

Bobby

Thanks a lot Bobby. Your explained it clearly. I am learning javascript and jquery. I already know html and css. I was wondering if jquery would be enough to build the games and your answer really helped me. I better find a friend who is good at backend. Have a nice day,

Can