Β© 2023 Hashnode
#ecmascript6
Var Before the advent of ES6, var declarations ruled. There are issues associated with variables declared with var, though. That is why it was necessary for new ways to declare variables to emerge. Fiβ¦
In today's episode of talking about awesome JavaScript features, we are going to turn our attention to the Spread operator(...) or Spread syntax. At the end of this article, you'll find a curated listβ¦
Howdy Folks! Hope all is good with thee today. Nowadays, it is hard to be coding without applying functional programming concepts to our code, which makes it more readable, maintainable and testable. β¦
The World Wide Web's Magical Spawn JavaScript - the language that has spurred pure mania into many developers since it's introduction in 1995 by Brendan Eich. Written in about a week and a half, the oβ¦
JavaScript JavaScript, often abbreviated as JS, is a programming language that conforms to the ECMAScript specification. Javascript is different because there isn't a single JS package to download anβ¦
A new generation of JavaScript frameworks / libraries are using ES6 template literals to achieve very performant DOM update cycles. One such library is uhtml The interesting part that I want to highβ¦
What is currying ? Currying is an advanced technique of working with functions. It is a transformation of functions that translates a function from callable as f(x, y, x) into callable as f(x)(y)(z). Example : //Normal function function adβ¦
//Concat ['ππ»ββοΈ', 'ππ»'].concat('π§π»') = [ 'ππ»ββοΈ', 'ππ»', 'π§π»' ] //Join ['π€΄π»', 'πΈπ»'].join('π') = 'π€΄π»ππΈπ»' //Slice ['π', 'πΆ', 'π'].slice(2)= [ 'π' ] //Index of ['0οΈβ£', '1οΈβ£', '2οΈβ£', '3οΈβ£'].indexOf('1οΈβ£') = 1 //Inβ¦
This article will give you a quick introduction to some of the commonly used ES6 features. Here's the list of all the ES6 features : Arrows Classes Enhanced object literals Template strings Destructβ¦
Here we are going to build a form validator class it will expose four methods forField, addRule, validate and required. forField This method will take field name as argument which we want to validate and returns an current object. addRule Tβ¦