Tell us what’s happening:
The error I get is:
Your spreadsheetFunctions object should have a has2 property.
I don’t understand why it doesn’t accept what I typed. I have checked the forum, and from what I have seen from other posts what I typed should be passing.
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
const spreadsheetFunctions = {
sum,
average,
median,
even: nums => nums.filter(isEven),
firsttwo: nums => nums.slice(0, 2),
lasttwo: nums => nums.slice(-2),
has2: nums => nums.includes(2),
increment: nums.map(num => num + 1)
}
// User Editable Region
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0
Challenge Information:
Learn Functional Programming by Building a Spreadsheet - Step 99