Public Questions for tag [function]

Ask Question

3 questions


0

Vote

4

Answers

20

View

What is the difference between using Function.prototype.apply() and Function.prototype.call() to invoke a function?var func = function() { alert('hello!'); };func.apply(); vs func.call();Are there

Jan 17

0

Vote

3

Answers

21

View

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features, and also trying to tidy up the code and make it more consistent.The previous developer used two ways

Dec 31

0

Vote

2

Answers

19

View

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables, and the like), but who does not understand closures themselves?

Dec 31