diff --git a/curriculum/challenges/english/03-front-end-development-libraries/bootstrap/add-elements-within-your-bootstrap-wells.md b/curriculum/challenges/english/03-front-end-development-libraries/bootstrap/add-elements-within-your-bootstrap-wells.md index 2326bddd3cc..59707e58898 100644 --- a/curriculum/challenges/english/03-front-end-development-libraries/bootstrap/add-elements-within-your-bootstrap-wells.md +++ b/curriculum/challenges/english/03-front-end-development-libraries/bootstrap/add-elements-within-your-bootstrap-wells.md @@ -17,26 +17,27 @@ Nest three `button` elements within each of your `div` elements having the class Three `button` elements should be nested within each of your `div` elements with class `well`. ```js -assert( - $('div.well:eq(0)').children('button').length === 3 && - $('div.well:eq(1)').children('button').length === 3 -); +const buttonOne = document.querySelectorAll('div.well')?.[0]; +const buttonOneChildren = buttonOne?.querySelectorAll(`:scope ${'button'}`); +assert.lengthOf(buttonOneChildren,3); + +const buttonTwo = document.querySelectorAll('div.well')?.[1] +const buttonTwoChildren = buttonTwo?.querySelectorAll(`:scope ${'button'}`); +assert.lengthOf(buttonTwoChildren,3); ``` You should have a total of 6 `button` elements. ```js -assert($('button') && $('button').length > 5); +assert.lengthOf(document.querySelectorAll('button'), 6); ``` All of your `button` elements should have closing tags. ```js -assert( - code.match(/<\/button>/g) && - code.match(/