There is a simple logic that I can’t seem to grasp concerning anonymous functions.
I read about it but its never explained with simple terms.
[COLOR=Blue]Circle.prototype.area = function () {return Math.PI * this.radius * this.radius}
[/COLOR]
What is the difference between declaring the function, naming it then writing the code inside brackets, and the line of code above.
Can someone explain this to me like am a 6 years old
What you’re feeling is premature enlightment…