Shifting the emphasis of learning from memorizing to understanding JavaScript. "If you are looking for a source that describes the most common methods from the JavaScript library, this is it. This is a great reference book." How many times have you attempted to learn JavaScript, only to put it on the side because it was too complex or you just felt overwhelmed by the information overload? This may be the book that will propel you forward to become a JavaScript programmer. Get yourself ready and cross that bridge now, download the eBook.
JavaScript Objects Functions and Arrays Explained covers a lot of material as you may see from the index below. However, each chapter is self-contained and easy to understand with plenty of illustrations and links to files of code you can physically copy. The author is, above all, a teacher.
This is a method to learn and to refer back later. The author recommends to read and review the book several times. It is easy to grasp but powerful when repeated the second time around.
The book covers the following topics:
PART I : AT THE GATES OF ENLIGHTENMENT Prototypical versus Class-based The Memory Concept Variables vs. Reference Types Everything comes from objects More Variables, add Functions. Named Functions vs. Anonymous Functions The Untouchable Object Native objects Hosted Objects What is a property? What is a variable? What is an execution context? The Window Object – Intro
An example of scope More Primitive and Reference Values How to pass in data from the stack to the heap
PART II – KNOW THY TOOLS Strings as Objects in JavaScript charAt and charCodeAt fromCharCode concat indexOf and lastIndexOf match replace search slice split substr substr vs substring toLowerCase and toUpperCase trim valueOf Array as Objects in JavaScript concat join reverse sort pop and push shift and unshift slice splice New JavaScript Array Iteration Methods forEach map every some filter New JavaScript Array Reduction and Location Methods What is Reduction reduce reduceRight Location Methods indexOf versus lastIndexOf
PART III – ENTERING THE SECOND REALM JavaScript Functions and Arguments as Objects arguments Nested Functions A Gentle Introduction to Closures The closure principal Lexical Scope The arguments object versus inner functions The “this†variable
Functions as Object Constructors Function Proprieties and Methods apply and call Adding more arguments to call and apply More practice with call, apply methods.
PART IV – STRENGTHENING THE WARRIOR’S ARSENAL The Math Object Math.random, floor, ceil, round Math.max and Math.min Math.pow, Math.sqrt, Math.abs Math constants, PI Useful Math Object references The Date Object Converting Date to a string Useful JavaScript date libraries
PART V – DEFEATING THE DRAGON Unordered Lists as Objects Accessor methods Mutation methods Practice and review: Create a Loan Application Object How to automatically evaluate and call a method Prototyping new methods Objects that inherit from other objects How to include prototype methods inside a constructor