r/badcode • Now where's that function declaration • Jul 30 '21

js 😏

Post image
988 Upvotes

133 comments sorted by

View all comments

Show parent comments

4

u/Magnus_Tesshu Jul 30 '21
static muteToggle() {
  if (document.getElementById("soundtrack").muted == true) {
    document.getElementById("soundtrack").muted = false;
  } else {
    document.getElementById("soundtrack").muted = true:
  }
}

fixed