medium10 pts · first answer countsjavascriptthisfunctions
Calling bind twice
What does this print?
function show() { return this.name }
const f = show.bind({ name: "A" }).bind({ name: "B" })
console.log(f())Discussion 0
Join free to post in the discussion.
Related questions
- Block scope of letFrontend Developer
- Loose vs strict equalityFrontend Developer
- Sync code runs before promise callbacksFrontend Developer
- typeof null and arraysFrontend Developer
- Changing a property of a const objectFrontend Developer
- Numbers saved in localStorageFrontend Developer
- What fetch does on a 404Frontend Developer
- Optional chaining on missing dataFrontend Developer