JavaScript Playground

Open the source code for this page in your code editor.

Try updating the JavaScript that generates the output object below.

Output

{
  "root": "C",
  "quality": "minor",
  "notes": [
    60,
    63,
    67
  ]
}

Hands On

  1. Complete the chordQuality function to determine the quality of the chord.
  2. Do you understand the generated code? Use Gemini to explain it to you.