You are viewing a single comment's thread. Return to all comments →
function sides(literals, ...expressions) { const [area, perimeter] = expressions; const raizPerimetroArea = Math.sqrt(perimeter ** 2 - 16 * area); const s1 = (perimeter + raizPerimetroArea) / 4; const s2 = (perimeter - raizPerimetroArea) / 4; const result = [s1, s2].sort(); return result; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 5: Template Literals
You are viewing a single comment's thread. Return to all comments →