função de grampo js
// Javascript
const clamp = (number, min, max) =>
Math.max(min, Math.min(number, max));
// Typescript
const clamp = (number: number, min: number, max: number) =>
Math.max(min, Math.min(number, max));
kenan238(life, errors);