Despite having semicolons optional in JS, I like to use them whenever appropriate anyway. That being the case, I'm not sure if the following deserve semicolons (because they end in braces):
Code:var a = function() { return 5; }Or is the answer more a coding preference?Code:var b = { b: 5, c: 3 }



Reply With Quote




Bookmarks