You are viewing a single comment's thread. Return to all comments →
function sides(literals, ...expressions) { let square=expressions[1]*expressions[1],air=16*expressions[0]; let s1=(expressions[1]+Math.sqrt(square-air))/4; let s2=(expressions[1]-Math.sqrt(square-air))/4; let s=[s1,s2]; s=s.sort(); return s; }
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 →