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 Treehouse Club: JavaScript Car Sounds Introduction to the HTML Document and Uploading a Picture

Ádám Csányi
PLUS
Ádám Csányi
Courses Plus Student 2,833 Points

JPG for images and WAV for audio

Is the JPG format for images and the WAV format for audio necessary for this whole thing to work? Thanks in advance for the answers.

3 Answers

Steven Parker
Steven Parker
231,269 Points

There are other formats you could use.

The JPG format is just one possible image format. Any valid image format would work. Some examples in this course use PNG format.

Likewise, WAV is just one possible format for audio. It's not even a very popular one because it takes up a lot of space for a given length of sound. Another (and much more compact) format is MP3, which is also shown in some examples in this course.

Ádám Csányi
PLUS
Ádám Csányi
Courses Plus Student 2,833 Points

Thank you Steven! I really appreciate your answer! I have messed up something and thats why the code was not working. I thought that that the wav. and the png. format was neccesary for it to work, but it turns out not :D thanks again!