typescript icon indicating copy to clipboard operation
typescript copied to clipboard

[Grade School] Tests fail on a valid approach

Open lilnasy opened this issue 3 years ago • 0 comments

The exercise expects the student to incorporate some mutability/modification guarantees. Object.freeze is one of the ways the goal can be achieved in javascript - it removes mutating methods like .push from the object you provide it. This is a reasonable approach. However, the test suite discourages its use by equating the runtime error to a test failure.

lilnasy avatar Jun 25 '22 12:06 lilnasy