The only difference is there's no way to return a value from the blocks because this: var name = { return 'Awesome' }
...wouldn't work because, besides return being only for functions, when you use the = it assumes an object literal and throws a syntax error.
The only difference is there's no way to return a value from the blocks because this: var name = { return 'Awesome' }
...wouldn't work because, besides return being only for functions, when you use the = it assumes an object literal and throws a syntax error.