There’s many things that can trip up beginners when they first learn JavaScript. The one thing that I most commonly see befuddling JS newbies is the mysterious ‘this’ variable. Even veterans of other object oriented languages can have problems understanding how ‘this’ works in JavaScript, as it works very differently
Month: September 2017
NPM Packages You Should Be Using: ramda
Welcome to the latest instalment of a series which brings to your attention NPM modules you may not be aware of, but which are very useful. Today we’ll be looking at ramda. If you’ve come to JavaScript from another mainstream language, you’ll probably feel that it’s missing a lot of
Object Oriented Programming In JavaScript – Part 3: ES6 Classes
ES6 introduced a whole host of new features into JavaScript. One of these was the class syntax. It gives us a way of defining ‘classes’ in JavaScript which is similar to more traditional Object Orientated languages such as Java. The reason I put ‘classes’ in inverted commas is because despite
Object Oriented Programming In JavaScript – Part 2: Inheritance
Inheritance is a major feature of Object Oriented Programming (OOP). It is useful because it allows for code reuse and is also a way of enabling polymorphism. Polymorphism is a bit beyond the scope of this post, but you can read various descriptions about it on the Stack Overflow thread:
Object Oriented Programming In JavaScript – Part 1: The Basics
The Basics of Objects In programming, objects are units of code which contain both data and functions which act on that data, all related to a specific entity within the system. They are used to model the semantics of the system. For example a customer relationship manager tool may contain