Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ nextSong
Function
nextSong
assets/js/Music_Player.js:81–88 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
79
80
// Next Song
81
function
nextSong() {
82
songIndex++;
83
if
(songIndex > songs.length - 1) {
84
songIndex = 0;
85
}
86
loadSong(songs[songIndex]);
87
playSong();
88
}
89
90
// On Load - Select First Song
91
loadSong(songs[songIndex]);
Callers
nothing calls this directly
Calls
2
loadSong
Function · 0.85
playSong
Function · 0.85
Tested by
no test coverage detected