Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/bradtraversy/vanillawebprojects
/ prevSong
Function
prevSong
music-player/script.js:49–59 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
47
48
// Previous song
49
function
prevSong() {
50
songIndex--;
51
52
if
(songIndex < 0) {
53
songIndex = songs.length - 1;
54
}
55
56
loadSong(songs[songIndex]);
57
58
playSong();
59
}
60
61
// Next song
62
function
nextSong() {
Callers
nothing calls this directly
Calls
2
loadSong
Function · 0.85
playSong
Function · 0.85
Tested by
no test coverage detected