Are there any instances in which hoisting behavior is beneficial
I came across the topic of Hoisting while having some casual discussion
with JavaScript developers, and i am told that Hoisting is NOT a mistake,
error or poorly written functionality but a powerful tool for developers.
Can anyone explain how JavaScript hoisting of variables and functions
serves as a powerful concept in JavaScript or how is it helpful while
writing code? (or) is it just an unintended concept which accidentally got
discovered by developers?
No comments:
Post a Comment