Day 55: A Little ES6

Dan Esmail - 2/24/2023

Intro

Now there is a lot of things that ES6 has added and the more I work with Javascript the more that I find I need to learn these things. I mean they are actually great in a lot of ways. I have already been using a few of these things like classes, let, const, and now promises. I have taken some time to look at arrow functions, template literals, and default parameters. There is so much more to dig into and learn still after this.

Arrow

From what I have gathered this seems like a way to call an anonymous function. With it just using an arrow as a function. It looks like this (something) => returnvalue. It's a quick and easy way to clal anonymous functions.

Template Literals

What I can tell from these is that instead of the + operator variables can be called into strings by doing this ${variable}. This is greate because I'm not going to have to write a million quotes.

Default Parameters

What I can tell from these is that instead of the + operator variables can be called into strings by doing this ${variable}. This is greate because I'm not going to have to write a million quotes.



Day 1

Day 1