First-class, Pure Functions
A programming language is said to have First-class functions when functions in that language are treated like any other variable. For example, […]
A programming language is said to have First-class functions when functions in that language are treated like any other variable. For example, […]
In computer science, functional programming is a programming paradigm—a style of building the structure and elements of computer programs—that treats computation as the evaluation […]
Locate the directory root to run the project and then Install NPM: Initialize a project: Node doesn’t have native support […]
Another way is Also it could include a function Even shorter… Source: https://www.udacity.com/course/es6-javascript-improved–ud356
The output is “Richard” Use cases The big question is when should you use let and const? The general rule of thumb is […]
Passing an object as 2 parameters: The two most used data structures in JavaScript are Object and Array. Objects allow us to create […]
First example (old way): and it could be optimized to (2 arguments) 1 argument: 0 arguments: if it has a […]
This operator spread the content of 1 object into another. Example: Using 3 points before arrays to list the elements […]