![]() Now this is bounded to the global object. The p5.js color system is a little odd but simple and fun once you get it. If it's not a property of an object, then we say it is invoked as a function. Someone recommended The Good Parts also, but I see that it is quite old and with the advent of ES6 and linters and Typescript, I'm not sure it adds value now to learning. When a method is invoked the this is bound to the object. In 2008 Crockford published a book announcing his discovery that Javascript, contrary to prevailing opinion, has good parts. Is JS: The Good Parts still worth buying I am currently learning from You Don't Know JS Series and also Eloquent JS 3rd Edition. When a function is a property of an object, we call it a method. This value is depended on the way the function was invoked: The Method Invocation Pattern In addition to the declared parameters of the function there are 2 more: this and arguments.Īrguments is an array-like objects which contains all the args given to the function. I know it's a few years old, though, and i know that Crockford may have critics. I bought Douglas Crockford's 'JavaScript: The Good Parts' today because i have heard great things about him and this book in particular. ![]() ![]() They are linked to Function.prototype which itself linked to Object.prototype.įunction are created with prototype property: its value is an object with a constructor property whose value is a function. JS The Good Parts - comments I am trying to become a real Javascript programmer. ![]() ![]() The prototype link is used only in retirval: If we try to retrieve foo from myObj JS will try to retireve it from myObj and if lacks it, JS will try to get it from its prototype and so on. ![]()
0 Comments
Leave a Reply. |