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!
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
Chandelor Simon2,242 Points
I was playing around with the html; when I went to change:
<audio id="startCar" src="sounds/startCar.wav" preload="auto"></audio>
to instead reflect:
<audio id="startCar" src="sounds/startCarA.wav" preload="auto"></audio>
I recall Joy saying you have to make changes to everything because all the pieces work together; would someone kindly clarify what's different about this aspect?
Steven Parker228,096 Points
I can see how that might be a bit confusing! That comment about changing things together would apply to identifiers like variable names. The name itself is not important, but you must be careful to use it consistently throughout the program.
In this case, the change is not being made to a program identifier, but to a file name. The file name is only used once in the program, as the value for the "src" attribute of the "audio" element. The file name might happen to look similar to a function name in the program, but they really are not related.