Creating an Audio Object

Report a typo

Imagine you decided to create your own version of Spotify. You create an Audio Object to keep and manage the files, and then you set the way to the physical mp3 file. What does it take instead of underscore to play an audio file?

let audio = document.createElement("AUDIO");
audio.src = "path/to/myAudio.mp3";
audio._____;
Enter a short text
___

Create a free account to access the full topic