I asked a question before and somebody give me a guide and I read it and I saw this
var temp = setTimeout,
setTimeout = function() {};
He said that temp will be undefined due to JavaScript hoisting and I dont understand why
Its not should be like that?
var temp;
temp = setTimeout;
setTimeout = function() {};
so why its undefined?
This is not the same. Your multiple
vardeclaration also declaressetTimeout:which is hoisted to