This was a good read overall, my only feedback would be that the part about methods being a little off. First out is that Array.push() is a prototype method that does not only accept integers, but any value (almost).
My understanding is that methods belong to an object - which all things in JS are but i refer to the commonly known object x = {}
That brings the prototype into play but also the methods/functions execution scope - the "this" keyword, which is only ever present in methods.
Also the term Closure is widely used in articles and could be mentioned here
Everything else you wrote was very good! I hope you appreciate me writing this in hope you wish to improve 🙏
Hi Pierre! This article is more beginner intended to explain complex topics through example so that beginners can understand it well. Also, Thanks for providing your feedback. :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This was a good read overall, my only feedback would be that the part about methods being a little off. First out is that Array.push() is a prototype method that does not only accept integers, but any value (almost).
My understanding is that methods belong to an object - which all things in JS are but i refer to the commonly known object x = {}
That brings the prototype into play but also the methods/functions execution scope - the "this" keyword, which is only ever present in methods.
Also the term Closure is widely used in articles and could be mentioned here
Everything else you wrote was very good! I hope you appreciate me writing this in hope you wish to improve 🙏
Hi Pierre! This article is more beginner intended to explain complex topics through example so that beginners can understand it well. Also, Thanks for providing your feedback. :)