MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / playSound

Function playSound

assets/js/simon.js:138–141  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

136};
137
138function playSound(name) {
139 var audio = new Audio("../assets/sounds/" + name + ".mp3");
140 audio.play();
141 }
142
143//executed on loading of the screen
144onload=create();

Callers 1

simon.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected