5

Javascript:
This works fine:
return {
ok : true
};

This doesn't:
return
{
ok : true
}

Comments
  • 2
    Are you asking why?
  • 1
    good, first one looks better. 😜

    cue arguing about bracing style...
  • 3
    The second one wouldn't work because it's missing a semi-colon.
  • 0
    At least we have linters now. Now I can force people to use semi colons in their javascript code 😁
  • 0
    That made me lol. I think what OP is alluding to is the placement of the braces. Same line vs below line
Add Comment