curriculum/challenges/english/blocks/workshop-piano/612e8279827a28352ce83a72.md
Now, copy the set of seven .key elements and paste two additional sets into the .keys div.
You should have 21 .key elements.
const keys = document.querySelectorAll('.key');
assert.lengthOf(keys, 21);
You should have 15 .black--key elements.
const blackKeys = document.querySelectorAll('.black--key');
assert.lengthOf(blackKeys, 15);
All .key elements should be within your .keys element.
const keys = document.querySelector('.keys');
assert.lengthOf(keys?.querySelectorAll('.key'), 21);
All .black--key elements should be within your .keys element.
const keys = document.querySelector('.keys');
assert.lengthOf(keys?.querySelectorAll('.black--key'), 15);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Piano</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
--fcc-editable-region--
<div id="piano">
<div class="keys">
<div class="key"></div>
<div class="key black--key"></div>
<div class="key black--key"></div>
<div class="key"></div>
<div class="key black--key"></div>
<div class="key black--key"></div>
<div class="key black--key"></div>
</div>
</div>
--fcc-editable-region--
</body>
</html>