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 HTML Comments and JavaScript

Omar Mohammed
Omar Mohammed
1,066 Points

how do we add a sound file?

Also. how do we copy a sound file in the webpage or anywhere else?

Erik Schultz
Erik Schultz
16,232 Points

What do you plan on doing with the audio file? If you are going to just play the audio file then you can use the HTML audio tag.

<audio><source src="honk.ogg" type="audio/ogg"><source src="honk.mp3" type="audio/mpeg"></audio>

Steven Parker
Steven Parker
231,269 Points

Aren't you learning that in this particular course? Or maybe you're "jumping the gun" a bit. :smirk: