Recortar texto y agregar ... js
const truncate = (input) => input.length > 5 ? `${input.substring(0, 5)}...` : input;
CoderHJ
const truncate = (input) => input.length > 5 ? `${input.substring(0, 5)}...` : input;