3 ms·
ok here's a more usual situation in which the programmer is blindly using their favorite bracketing style, and come across the issue... function getObject() {
by axod 18y ago
ok here's a more usual situation in which the programmer is blindly using their favorite bracketing style, and come across the issue...
function getObject()
{
return // returns undefined, not the object.
{
age: 30,
name: "axod"
}
}
Personally I hate that style of bracketing, but some swear by it.
- timknauf 18y agoYeah, not really my favourite bracketing style either. Good example though - it is conceivable that this could happen.