ES6 Arrow Function Tutorial

es6 fat arrow syntax

Let’s take a look at ES6 arrow functions. If you’ve spent any amount of time programming JavaScript, you know that after awhile, it feels like you’re typing out that function keyword over and over and over. You write a function here, you write a function there. Here a function, there a function, every where a function function. That’s because anytime you want something to actually happen in your script, you need to write another function!…

ES6 let vs var vs const

es6-let-vs-var-vs-const

ES6 let vs var vs const, oh my! ES6 is here, and developers are making use of it now. There are a lot of differences between ES6 and it’s predecessor ES5, and if you want to make use of the new features available to you, you need to learn about how things work in ES6. In this tutorial, we’ll start out at the very beginning in ES6 and examine the new let keyword, const keyword, as well as block scope in ES6.…

VueJS Subnet Calculator

vuejs-example-applicatio

In this Vue.js tutorial, we’ll create a new Vue.js powered application that is a little more ambitious than what we have covered so far. Here, we will build an Internet Protocol version 4 javascript subnet calculator. The subnet calculator accepts an IP address as well as a subnet mask. From these two inputs, the application dynamically calculates the Network Address, the First Host, the Last Host, the Broadcast Address, the Total Hosts, and more.…

How Does The Filter Function Work In Underscore JS?

underscore filter

In Underscore, the filter function provides the ability to filter out some values based off of a Tester function that you pass it. The Tester function is more formally declared as the predicate. The concept is similar to many of the Underscore functions we have covered so far. The official signature of filter is _.filter(list, predicate, [context]) and it returns an array with all the items from the list collection that satisfy the test condition found in the predicate function.…

7 Examples of the Every Function in Underscore JS

7 Examples of the Every Function in Underscore JS

This tutorial takes a look at the _every() function in Underscore. When you need to apply a truth test to all values in an array, _every() is there to help you out. Because of JavaScript’s loose type checking, making use of _every() and the related _some() function can be helpful. _every() uses the signature of _.every(list, [predicate], [context]). The function will check each item of the given list and will return true if every item satisfies the predicate function or if list is null, undefined or empty.…