What’s your favorite interview question to ask a candidate?
For further actions, you may consider blocking this person and/or reporting abuse
What’s your favorite interview question to ask a candidate?
For further actions, you may consider blocking this person and/or reporting abuse
Latest comments (40)
setTimeout(()=>console.log("Hello4"),1004)
setTimeout(()=>console.log("Hello3"),1003)
setTimeout(()=>console.log("Hello2"),1002)
setTimeout(()=>console.log("Hello1"),1001)
setTimeout(()=>console.log("Hello0"),1000)
or
for(let i=0;i<5;i++){
setTimeout(()=>console.log("Hello" +i),1000*1)
}
Both code will produce same result!
I'm new to JS, and I'm pretty clear on why this logs 10 to the console, but I'm not understanding why it logs it 10 times. Can someone please explain this to a noob?
PS - apologies for reactivating an older thread, but this code actually came up in another context, and when I searched I found this discussion. Thanks for understanding.
I am not a JS expert, but... TAB == 0 ?!? 😲
What's difference between this
and this
Create a non-brute force autocomplete function in JavaScript. 😎
I know this might sound a bit ridiculous, but...
'When was the first time you touched a computer?'
'And when was the first time a computer touched you?'
No pun intended! :)
What's your favorite addition to ECMAscript?
Any that I know and get right. 😅
Because answer on this question will discover what answerer know about:
Some comments may only be visible to logged-in visitors. Sign in to view all comments.