top of page


Find all of Authentise's press releases, dev blogs and additive manufacturing thought pieces right here.

ES6 features to start with

Arrows =>

Arrows are a shorthand for function.

Old way:

users.forEach(function(user) {
    // do something with the user

New way:

users.forEach(user => {
    // do something with the user

Important tip: Arrow functions share this as the code surrounding them, unlike functions.


Classes are just sugar around OO prototype system.

Old way:

var Person = function (name) { = name;
Person.prototype.getName = function () {
var john = new Person('John Smith');
console.log(‘My name is‘, john.getName());

New way:

class Person {
    constructor(name) { = name
    getName() {
var john = new Person('John Smith')
console.log(‘My name is‘, john.getName())

Template Strings

Old way:

var textConcatenation = 'Timestamp: ' +;

New way:

var templateStrings = `Timestamp: ${}`



export const error = (message) => { console.error(message) }
export const warning = (message) => { console.warning(message) }


export * as Log from 'log'

# The message will be logged as error. This is a bad error message. More on error messages here:
Log.warning('The system is overheating')
Log.error('Segmentation fault')


Functions can now have arguments with default value

function sum(x, y=10) {
    return x+y

sum(1) // 11

Rest + Spread

Skip passing arguments one by one

function sum(...numbers) {
    return numbers.reduce((a, b) => a + b, 0)
var numbers = [1, 2, 3, 4]
sum(numbers) // 10

Once you've added the above new features into your code, you could continue to explore the many more features that 6th edition has to offer:

19 views0 comments

Recent Posts

See All

Tips on API and Database Creation

Intro Lately I've been working on creating an API that interacts with a database and I picked up on some mistakes that I made and thought it would help everyone out to share it. I'll be starting off w

bottom of page