Hi to all,
Hope you all will be fine. Actually i want to ask you people a simple question ?
Is (navigator.window) is same as (“navigator” in window) purporting if i use a conditions like
if ( “navigator” in window )
if ( “createElement” in document )
So i want to ask, these two conditions are same to navigator.window and document.createElement respectively.If yes then why we wrote like this, is it a matter of personal choice only and if no then what is the difference between these two. ?
Another question when we write a function then we use function keyword, then function name like function add() {}, actually i have a code in which someone write function like this
(function (obj){// code})
So i want to ask he did not use any name here so when we write function like above
Thank you ?