---
id: 61fd9126aa72a474301fc49f
title: Passo 20
challengeType: 0
dashedName: step-20
---
# --description--
Dentro do elemento `tbody`, adicione quatro elementos `tr`. Dê aos três primeiros um atributo `class` definido como `data` e ao quarto um atributo `class` definido como `total`.
# --hints--
O elemento `tbody` deve ter quatro elementos `tr`.
```js
const children = [...document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.children];
assert(children?.length === 4);
children.forEach(child => assert(child?.localName === 'tr'));
```
Os primeiros três elementos `tr` devem ter o atributo `class` definido como `data`.
```js
const children = [...document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.children];
children.forEach((child, index) => {
if (index < 3) {
assert(child?.classList?.contains('data'));
}
});
```
O quarto elemento `tr` deve ter o atributo `class` definido como `total`.
```js
const children = [...document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.children];
assert(children?.[3]?.classList?.contains('total'));
```
# --seed--
## --seed-contents--
```html