Tell us what’s happening:
Why dose this test not pass me i am logging the correct thing arent I?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
function instrumentCards(instrumentCategory) {
const instruments =
instrumentCategory === "all"
? instrumentsArr
: instrumentsArr.filter(
({ category }) => category === instrumentCategory
);
return instruments.map(obj =>{
let instrument = obj.instrument
let price = obj.price
return `<div class="card"><h2>[${instrument}]</h2><p>[${price}]</p></div>`
})
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0
Challenge Information:
Build a Music Instrument Filter - Step 12