gootieno / ModuleRepo

Repo for tracking to-dos for the module
2 stars 0 forks source link

Assessment Spec Issue #11

Open gootieno opened 2 years ago

gootieno commented 2 years ago

Problem with Spec 3 on Part 1 of Assessment (pt 17 selection manipulation-main)

Directions: Select all of the elements with the class of "odd" and add a box shadow. You may choose your own box-shadow values.

Problem that needs to be addressed: Students are supposed to grab all elements with the class of "odd" and add a box shadow, however the specs passed a student when they just used a query selector to grab the first item with the class of odd.

CORRECT ANSWER:

const odds = document.querySelectorAll(".odd"); odds.forEach(el => { el.style.boxShadow = "10px 10px 10px black" })

EXAMPLE OF INCORRECT ANSWER THAT SPECS CONSIDERED CORRECT:

const odd = document.querySelector(".odd"); odd.style.boxShadow = "10px 10px 10px black"

Project Here

samsongs1991 commented 2 years ago

I submitted an issue directly to the project repo.