Heat Map Test #8 [SOLVED]

I’ve been trying to work many solutions to solve the axes to align with the data cells. Now my project is not passing test #8. I don’t know how to solve it. Any help would be great.

link to project: https://codepen.io/Ozubergs/pen/eboQWX?editors=0010

1 Like

The test is expecting a number for the month, but is receiving a string, like January. Use months.indexOf(d.month) to give you the number corresponding to the month name. All tests should then pass.

2 Likes

Ohhh… I get it. Now all the test pass. Thanks!

I had the same issue, and I solved it thanks to you.

Can’t tell you how long it took me to realize what was happening! Glad it helped.

1 Like