Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ prevSong
Function
prevSong
assets/js/Music_Player.js:71–78 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
69
70
// Previous Song
71
function
prevSong() {
72
songIndex--;
73
if
(songIndex < 0) {
74
songIndex = songs.length - 1;
75
}
76
loadSong(songs[songIndex]);
77
playSong();
78
}
79
80
// Next Song
81
function
nextSong() {
Callers
nothing calls this directly
Calls
2
loadSong
Function · 0.85
playSong
Function · 0.85
Tested by
no test coverage detected