Finding a Remainder in JavaScript

Hi there

It’s a minor remark towards improving FCC quality that will not derail my oncoming career, but I found it odd that

const REMAINDER = 11 % 3; got refused by the tests whilst

const remainder = 11 % 3; got accepted. Granted, it was on the %. Nevertheless, it is odd. Especially since the assignment defined I needed to use a const.

Ddin’t know where to post. Hope here’s fine.

The rule is not “USE ALL CAPS EVERY SINGLE TIME YOU SEE CONST USED AT ALL”. The rule is “use all caps when const is used for a global constant”.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.