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

The game :)

So i have made my first game using treehouse courses to help me out on this. It may not be much to such but it was fun to make and learn some new things in the process main things on site is ajax, flexbox and working with json data :)

link to game: https://clickerbuild.com

1 Answer

This game looks cool. How did you do this with JavaScript? The only application I really know at the moment for JavaScript is how to manipulate elements on a web page? How did you manage to create a game with it?

Well the game is not 100% js :p

But it runs all the functions when you click, it send that info with ajax to php file for checks and comes back as json to display if input/click was correct or not and displays a message accordingly and if all checks are true php file puts data into database.