![]() Features include Promises, Modules, Classes, Template Literals, Arrow Functions, Let and Const, Default. If you console.log(this) over here, it'll reference the window object. Support for the ECMAScript 2015 specification. ![]() ![]() * A simple function that returns a greeting */ const greeting1 = function( ) department.`) Hence, I'll try to introduce the various syntax that exists with arrow functions with examples, and with practice, it really gets easier. Often, our minds are trained to learn a concept, and when you want to apply the concept via code, we look up for the syntax.īut, what happens if there are multiple syntaxes that exist for a single function? The mind just goes into a loop and that's precisely what happened to me when I started learning arrow functions. In this article, we will look at one of the most popular features introduced with ES6, the arrow functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |