coja@lemmy.ml to Programmer Humor@lemmy.ml · 10 months agoFind yourselflemmy.mlimagemessage-square104fedilinkarrow-up1648arrow-down129
arrow-up1619arrow-down1imageFind yourselflemmy.mlcoja@lemmy.ml to Programmer Humor@lemmy.ml · 10 months agomessage-square104fedilink
minus-squareGTG3000@programming.devlinkfedilinkРусскийarrow-up3·10 months agoWhy use const max = (x, y) => x > y ? x : y instead of function max(x, y) { return x > y ? x : y } ?
Why use
const max = (x, y) => x > y ? x : y
instead offunction max(x, y) { return x > y ? x : y }
?