jopsozepsi@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agofunction {}message-squaremessage-square11fedilinkarrow-up145arrow-down17file-text
arrow-up138arrow-down1message-squarefunction {}jopsozepsi@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square11fedilinkfile-text
minus-squarezygo_histo_morpheus@programming.devlinkfedilinkEnglisharrow-up1·1 year agoonly good thing about javascript is that it forces people to put the squiggly brackets on the right
minus-squarebcrussin_dev@programming.devlinkfedilinkEnglisharrow-up2·1 year agoI thought you could put curly brackets on a new line in js? Although I know when returning an object it has to be on the same line… fuck JavaScript man
minus-squarezygo_histo_morpheus@programming.devlinkfedilinkEnglisharrow-up1·1 year agoExactly, your options are either mixing curly brackets or putting them all on the right and most people aren’t crazy enough to mix then
only good thing about javascript is that it forces people to put the squiggly brackets on the right
I thought you could put curly brackets on a new line in js? Although I know when returning an object it has to be on the same line… fuck JavaScript man
Exactly, your options are either mixing curly brackets or putting them all on the right and most people aren’t crazy enough to mix then