Skip to content Skip to sidebar Skip to footer

Can't Pass A DOM Element To A Constructor Function In Javascript When Trying To Abstract Section Of WebAudio API Xhr Request

My problem is this. When I add an argument to the audioBoing function below and then place the same argument in the getElementById string, the function doesn't work. I get an error

Solution 1:

You didn't quote the string you passed to audioBoing

audioBoing("noteOneDrumOneBig");

Post a Comment for "Can't Pass A DOM Element To A Constructor Function In Javascript When Trying To Abstract Section Of WebAudio API Xhr Request"