5 Minute JavaScript #11: Prototypes
Last week, we discussed the JSON format. Today we are going to take a deeper look in the object structure in JavaScript. In most object-oriented programming languages you have some kind of classical...
View Article5 Minute JavaScript #12: extending native functionality
In the previous blogpost we took a quick look at the prototype of a value in JavaScript. We also noted that primitive data types such as String and Object have prototype objects of their own....
View Article5 Minute JavaScript #13: How to create an array from a range
Previous blogpost we discussed extending native data types in JavaScript. Today we’ll create a method in the array prototype that you can use to easily create a range such as an array. Some programming...
View Article5 Minute JavaScript #14: forEach
After discussing how to create a range in the last post, we will discuss some of the array methods and how to use them to make your code more readable and concise. First of all, I want to add that...
View Article5 Minute JavaScript #15: filter
In the previous blogpost we discussed the forEach method that iterates over every array. We can now create a filtered array by using this function. var filtered = [] arr.forEach(function (item) { if...
View Article5 Minute JavaScript #16: map
Last week we took a look at the filter functionality. This week I will show you one of my favourite array methods called: “map”. It’s extremely powerful and useful in so many ways. The purpose of map...
View Article5 Minute JavaScript #17: some and every
In the previous blogpost we discussed the map method on arrays in JavaScript. We still have some useful methods the go. Next in line are the some and every methods. These methods are similar and can be...
View Article5 Minute JavaScript #18: reduce
The past weeks we dived in the wonderful world of array methods. Previously we already discussed forEach, filter, some and every, and map. Today we’ll take a look at the reduce method. While being...
View Article5 Minute JavaScript #19: Polyfills
The past few weeks were dedicated to the useful array methods. However these methods have been implemented in ECMAScript 5 and are therefore not available in older browsers such as IE8 and sometimes we...
View ArticlePartially Applied Functions in JavaScript
First of all, what are partially applied functions? There’s a little bit of theory here. The concept of partially applying functions stems from the functional way of programming. There it’s tightly...
View Article