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