coja@lemmy.ml to Programmer Humor@lemmy.ml • 8 months agoFind yourselfimagemessage-square18 fedilinkarrow-up1211
arrow-up1211imageFind yourselfcoja@lemmy.ml to Programmer Humor@lemmy.ml • 8 months agomessage-square18 Commentsfedilink
minus-squareGTG3000@programming.devhexbear1·8 months agoWhy use const max = (x, y) => x > y ? x : y instead of function max(x, y) { return x > y ? x : y } ? linkfedilink
Why use
const max = (x, y) => x > y ? x : y
instead offunction max(x, y) { return x > y ? x : y }
?