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

Is there a way to write a program in JS that has multiple choice, fill in the blank, and drag and drop questions?

I also want to achieve this without having to go to another page with a "next question" button Still very new to JavaScript and need some suggestions. Thanks!

1 Answer

Steven Parker
Steven Parker
229,982 Points

:point_right: This is certainly doable in JavaScript.

But it may be a bit more than a "beginner" level project. Still, it would be fun objective as you continue your learning progress. Some specific things you'll want to learn about:

  • Event handlers, so you can react when something is chosen, filled-in, or dragged.
  • Event objects, so you can know where an item is dropped.
  • DOM manipulation, so you can visibly change things on the screen.
  • Animation techniques, so you can move things smoothly.
  • CSS transitions, which are not absolutely necessary but might be helpful.

When you get it built, consider posting it here β€” and be sure to tag me, I'd like to see it.

Thanks for the advice and sure will tag you when it's done!