Javascript Function Difference in DOM? -


this came interview question via friend.

is there difference between following function declarations?

function foo() {    // } 

and

function foo() {    // } 

the interviewer said dom treats these differently. can't find online though curious if has heard of before.

so, can matter, examples in links showed. in case, no, there absolutely no difference. if there is, i'd love see it.

coding standards matter of religion. meaningful. drop brace down next line, makes more readable code.

if want chuckle foibles of human opinions, start googling subject. find rants, , counter rants. truth is, write according standards of place work. aware of issues may cause. it's pretty simple.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -