Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
15,986 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
216,017 Points

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