I'm beginning to learn JavaScript thoroughly. I couldn't help but notice that a lot of programmers have a certain "scripty" style in JS where they seem to omit spaces between curly braces and assignments such as
function SomeBaseClass(){
this.publicProperty='SomeValue';
}
vs
function SomeBaseClass() {
this.publicProperty = 'SomeValue';
}
I've never seen this style prevalent in other languages. I can't seem to find out whether there a good reason to use this style or if it is just an aesthetic preference. If it's an aesthetic preference, what's the history behind it?