Cipherd@lemmy.ml to Programmer Humor@programming.dev · 4 months agofunctionslemmy.mlimagemessage-square51linkfedilinkarrow-up1470arrow-down15file-text
arrow-up1465arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@programming.dev · 4 months agomessage-square51linkfedilinkfile-text
minus-squaremindbleach@sh.itjust.workslinkfedilinkarrow-up9arrow-down1·4 months ago()=>{} Javascript straddling the middle as usual.
minus-squaremasterspace@lemmy.calinkfedilinkEnglisharrow-up7·4 months agoThe equivalent in JavaScript / TypeScript would actually be function () {}, this is the syntax for named functions. C# is the same as bash though.
minus-squaremindbleach@sh.itjust.workslinkfedilinkarrow-up2·4 months agoIt’s object-oriented; you can assign this to a named variable.
()=>{}Javascript straddling the middle as usual.
The equivalent in JavaScript / TypeScript would actually be
function () {}, this is the syntax for named functions.C# is the same as bash though.
It’s object-oriented; you can assign this to a named variable.