New course! Every coder should learn Generative AI!
Try a free lesson0
excuse me sir I want to ask, can you make background music using JavaScript? if he is what the code is 😅😅
2 Answers
+ 4
let aud = new Audio();
aud.src =.... (the url of resources)
(in an mouse event listener) {
aud.play();
}