@jopsozepsi to Programmer [email protected]English • 2 years agofunction {}message-square13arrow-up153arrow-down18file-text
arrow-up145arrow-down1message-squarefunction {}@jopsozepsi to Programmer [email protected]English • 2 years agomessage-square13file-text
minus-squareGrishAixlinkfedilinkEnglish14•2 years agofunction { } Is for cheaters who want to squeeze as much code as possible onto one screen.
minus-square@[email protected]linkfedilinkEnglish1•2 years agoonly good thing about javascript is that it forces people to put the squiggly brackets on the right
minus-square@[email protected]linkfedilinkEnglish2•2 years 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-square@[email protected]linkfedilinkEnglish1•2 years 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
function { }
Is for cheaters who want to squeeze as much code as possible onto one screen.
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