* chore(curriculum): accessibility-quiz * chore(curriculum): cafe-menu * chore(curriculum): ferris-wheel * chore(curriculum): fix ferris-wheel tests * chore(curriculum): colored-markers * chore(curriculum): photo-gallery * chore(curriculum): magazine * chore(curriculum): penguin * chore(curriculum): city-skyline * chore(curriculum): registration-form * chore(curriculum): picasso-painting * chore(curriculum): balance-sheet * chore(curriculum): piano * chore(curriculum): rothko-painting * fix: title min 15 chars
1.1 KiB
1.1 KiB
id, title, challengeType, dashedName
id | title | challengeType | dashedName |
---|---|---|---|
612e804c54d5e7308d7ebe56 | Step 5 | 0 | step-5 |
--description--
Within your .keys
element, add seven div
elements. Give them all the class key
.
--hints--
You should create seven new div
elements.
const divDivDiv = document.querySelectorAll('div');
assert(divDivDiv?.length === 9);
Your seven new div
elements should be within your .keys
element.
const keys = document.querySelector('.keys');
assert([...keys?.children].length === 7);
assert([...keys?.children].every(child => child?.tagName === 'DIV'));
Your seven new div
elements should all have the class
set to key
.
const keys = document.querySelector('.keys');
assert([...keys?.children].every(child => child?.classList?.contains('key')));
--seed--
--seed-contents--
<!DOCTYPE html>
<html>
<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>
</div>
--fcc-editable-region--
</body>
</html>