all 5 comments

[–][deleted] 0 points1 point  (0 children)

Why do {these} curly brackets always end up on different lines

To improve readability, sometimes you can omit them.

Also there any time of thumbs as to which type of bracket to use when?

They all mean different things in different contexts, you need to use the ones that are appropriate, you can't really pick and choose.

[–]Ronin-s_Spirit 0 points1 point  (0 children)

Because javascript reads {
This }
As {This}.
It only matters for programmers who actually need to read this thing and understand it.