Skip to content

Commit

Permalink
Fixed changes as per reviewer suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav-ace committed May 23, 2024
1 parent c09281f commit fa709ca
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,43 @@ dashedName: step-21

# --description--

Create two `div` elements. First inside `.cat-left-ear` element with class `cat-left-inner-ear`, and second inside `.cat-right-ear` element with class `cat-right-inner-ear`.
Create two `div` elements: the first inside the `.cat-left-ear` element with a class of `cat-left-inner-ear`, and the second inside the `.cat-right-ear` element with a class of `cat-right-inner-ear`.

# --hints--

You should not change the existing `div` elements with the class `cat-left-inner-ear` or `cat-right-inner-ear`.
You should not change the existing `div` element with the class `cat-left-inner-ear`.

```js
assert(document.querySelectorAll('div.cat-left-ear').length === 1);
```

You should not change the existing `div` element with the class `cat-right-inner-ear`.

```js
assert(document.querySelectorAll('div.cat-right-ear').length === 1);
```

You should have a `div` element inside your `.cat-left-ear` and `.cat-right-ear` element.
You should have a `div` element inside your `.cat-left-ear` element.

```js
assert(document.querySelectorAll('.cat-left-ear div').length === 1);
```

You should have a `div` element inside your `.cat-right-ear` element.

```js
assert(document.querySelectorAll('.cat-right-ear div').length === 1);
```

Your `div` elements should have the class `cat-left-inner-ear` and `cat-right-inner-ear`.
Your `div` element should have the class `cat-left-inner-ear`.

```js
assert(document.querySelectorAll('.cat-left-ear div')[0]?.classList.contains('cat-left-inner-ear'));
```
Your `div` element should have the class `cat-right-inner-ear`.
```js
assert(document.querySelectorAll('.cat-right-ear div')[0]?.classList.contains('cat-right-inner-ear'));
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,43 @@ dashedName: step-40

# --description--

Create two `div` elements, one with the class `cat-left-inner-eye` inside the `.cat-left-eye` element and the second with the class `cat-right-inner-eye` inside the `.cat-right-eye` element.
Create two `div` elements, one with the class `cat-left-inner-eye` inside the `.cat-left-eye` element and another with the class `cat-right-inner-eye` inside the `.cat-right-eye` element.

# --hints--

You should not change the existing `div` elements with the class `cat-left-eye` and `.cat-right-eye`.
You should not change the existing `div` element with the class `cat-left-eye`.

```js
assert(document.querySelectorAll('div.cat-left-eye').length === 1);
```

You should not change the existing `div` element with the class `.cat-right-eye`.

```js
assert(document.querySelectorAll('div.cat-right-eye').length === 1);
```

You should have two `div` elements inside your `.cat-left-eye` element and `.cat-right-eye` element.
You should have a `div` element inside your `.cat-left-eye` element.

```js
assert(document.querySelectorAll('.cat-left-eye div').length === 1);
```

You should have a `div` element inside your `.cat-right-eye` element.

```js
assert(document.querySelectorAll('.cat-right-eye div').length === 1);
```

Your `div` elements should have the class `cat-left-inner-eye` and `cat-right-inner-eye`.
Your `div` element should have the class `cat-left-inner-eye`.

```js
assert(document.querySelectorAll('.cat-left-eye div')[0]?.classList.contains('cat-left-inner-eye'));
```
Your `div` element should have the class `cat-right-inner-eye`.
```js
assert(document.querySelectorAll('.cat-right-eye div')[0]?.classList.contains('cat-right-inner-eye'));
```
Expand Down

0 comments on commit fa709ca

Please sign in to comment.