Prototype: implement codePoints(text) returning an array of its exact Unicode code-point strings. Input is a string; do not normalize it.
Final: implement clipText(text, maximum) returning the first at most maximum code points. maximum must be a nonnegative safe integer or throw RangeError. This exercise deliberately uses code points, not graphemes. Keep combining marks distinct and do not alter text beyond clipping.
Complete the exported stubs in exercise.mjs. The prototype and final stages have separate checks.
node main.mjs --stage prototype
node main.mjs --stage finalUse Node.js 20+ locally, or the website's browser worker. Tests are standard-library only and check the documented behavior; they do not prove performance or force garbage collection.
Complete the starter code, then run the checks.
Results and errors will appear here.