Skip to content

Instantly share code, notes, and snippets.

@ajuhpark
ajuhpark / player-js-analysis.md
Last active May 13, 2020 05:30 — forked from ellefaraday/player-js-analysis.md
player.js analysis
  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.
@ajuhpark
ajuhpark / index.html
Created November 24, 2019 23:39 — forked from codecademydev/index.html
Codecademy export
<!DOCTYPE html>
<html lang="en">
<head>
<title>Codecademy | Color For UI</title>
<!-- Meta -->
<meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1 user-scalable=no">