* feat: initial infra * feat: create steps * chore: apply sem's review suggestions Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com> * feat: write tests * chore: optional?.chaining?. * chore: gikf's suggestion Co-authored-by: Krzysztof <60067306+gikf@users.noreply.github.com> * chore: rename * chore: * Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> * chore: apply shaun's review suggestions Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> * chore: manual review suggestions * chore: ????? Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com> Co-authored-by: Krzysztof <60067306+gikf@users.noreply.github.com> Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
1.7 KiB
1.7 KiB
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 6193da99ca92051a07fb8a13 | Step 2 | 0 | step-2 |
--description--
Within your body element, create a div element with the id set to sheet. Below that, create a footer element with the text set to Last Updated: December 2021.
--hints--
You should create a new div element.
assert(document.querySelectorAll('div')?.length === 1);
Your new div element should be within your body element.
assert(document.querySelector('div')?.parentElement?.localName === 'body');
Your new div element should have an id attribute set to sheet.
assert(document.querySelector('div')?.getAttribute('id') === 'sheet');
You should create a new footer element.
assert(document.querySelectorAll('footer')?.length === 1);
Your new footer element should be within your body element.
assert(document?.querySelector('footer')?.parentElement?.localName === 'body');
Your footer element should come after your div element.
assert(document.querySelector('footer')?.previousElementSibling?.localName === 'div');
Your footer element should have the text Last Updated: December 2021.
assert(document.querySelector('footer')?.textContent === 'Last Updated: December 2021');
--seed--
--seed-contents--
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AcmeWidgetCorp Balance Sheet</title>
<link rel="stylesheet" type="text/css" href="./styles.css" />
</head>
--fcc-editable-region--
<body>
</body>
--fcc-editable-region--
</html>