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

Simple Drag and Drop Game

Hi everyone, I want to build a drag and drop game where you can match 2 words. Where should I begin?

2 Answers

How does the game work? You mean like pairing words together like "mountain"+"bike", "pencil"+"sharpener"?

Yes, It will be like you said. I want to pair two elements that include words or pictures. For instance, the words mountain and pencil will be on one side and bike and sharpener will be on the other side. And the user will try to pair them correctly by dragging the word on the left to the right.