---
id: 61fd9126aa72a474301fc49f
title: Step 20
challengeType: 0
dashedName: step-20
---
# --description--
All'interno dell'elemento `tbody`, aggiungi quattro elementi `tr`. Dai i primi tre l'attributo`class` impostato su `data`, e al quarto l'attributo `class` impostato su `total`.
# --hints--
L'elemento `tbody` dovrebbe avere quattro elementi `tr`.
```js
const children = [...document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.children];
assert(children?.length === 4);
children.forEach(child => assert(child?.localName === 'tr'));
```
I primi tre elementi `tr` dovrebbero avere l'attributo `class` con il valore `data`.
```js
const children = [...document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.children];
children.forEach((child, index) => {
if (index < 3) {
assert(child?.classList?.contains('data'));
}
});
```
Il quarto elemento `tr` dovrebbe avere l'attributo `class` con il valore `total`.
```js
const children = [...document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.children];
assert(children?.[3]?.classList?.contains('total'));
```
# --seed--
## --seed-contents--
```html