Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block kolbykskk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View debugging
let toDos = [];
function onReady() {
let id = 0;
const addToDoForm = document.getElementByid('addToDoForm');
const newToDoText = document.getElementByid('newToDoText');
const toDolist = document.getElementByid('toDoList');
function createNewToDo() {
if (!newTodotext.value) {return; }
  1. This file declares a class, Player, instantiates it, and assigns it to a global player variable.
  2. The Player class contains four methods:
    • constructor()
    • playPause()
    • skipTo()
    • setVolume()
  3. The constructor() method sets initial values for the currentlyPlaying, playState, volume, and soundObject properties.
    • currentlyPlaying is set to the first item in album.songs.
    • The initial playState is "stopped".
    • The volume is set to the number 80.
You can’t perform that action at this time.