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
Post a Comment