79430856

Date: 2025-02-11 17:35:02
Score: 1.5
Natty:
Report link

You have one error that I can see on line 7. You are using the assignment operator instead of the equality operator in your if statement. You probably know this but if you want to compare two values you use either == or ===. This is an easy mistake to make.

if (vals[a][i] = today) {

should be:

if (vals[a][i] === today) {

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Assignment

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tyler Dill