Tag: es6

  • New String Methods In ES6

    New String Methods In ES6

    One area of JavaScript has definitely needed some help with in the past is working with strings. Traditionally, there hasn’t been a lot of built in methods to deal with common string processing scenarios. You could get things done with regular expressions just fine, but it would be nice to have methods dedicated to string […]

  • ES6 Sets and Maps

    ES6 Sets and Maps

    ES6 includes two data structures which help programmers get work done without reinventing the wheel. These two data structures are those of Sets and Maps. A Set can be thought of as a collection of elements that are both unordered, and unique. That is the key to remember. The purpose of a Set is to […]

  • 9 New Array Functions in ES6

    9 New Array Functions in ES6

    There are many new extensions to the array object in ES6. In this journey of learning the foo of ES6, we will set our targets on mastering the ways of new functions like Array.of(), Array.from(), Array.fill(), Array.find(), Array.findIndex(), Array.copyWithin(), Array.entries(), Array.keys(), and Array.values(). These new functions make it easier to fill up arrays, or find […]

  • ES6 Generators

    ES6 Generators

    Generators in ES6 are a special kind of function that return an iterator. They are quite a bit different than your standard run of the mill function in JavaScript however. Generators can pause themselves as they are running, and return multiple values as execution pauses and resumes. You use an iterator to call a generator […]

  • Iterators In ES6

    Iterators In ES6

    Iterators are a major new feature in ES6, and are used extensively already. Iterators are used for lazy evaluation, or in cases where describing an infinite sequence is needed. Soon we will be looking at Generators, and it helps to have a grasp of iterators before we do so. In fact, Iterators are kind of […]

  • ES6 Promises Tutorial

    ES6 Promises Tutorial

    Modern programming languages have a jargon all to themselves. We are inundated with acronyms and foreign-sounding words every day. Today, we’ll be talking about Promises. If you make use of our good friend Webster, you’ll find something along the lines of this for the meaning of a promise: A declaration or assurance that one will […]

  • ES6 Class Tutorial

    ES6 Class Tutorial

    Object Oriented Programmers Rejoice! ES6 now has support for classes! This ES6 Tutorial will look at how JavaScript now has a class keyword as of ES6, and you can make use of it to program in a similar way as to how you might in C#, Java, or PHP. Classes in ES6 are definitely a […]