ECMA Script 6
let helps you scope instead using var , var is global.
Const type you cannot assign when created after
Template string
Function printName(firstname)
{
console.log( `Hello ${ firstname }`);
}
Searching Strings
Symbols
The core of javascript applications are primitives,types such as numbers,string,array, objects and more. symbols are primitive. For unique ids.
Maps
In map, any value,both objects and primitives values may be used either as a key or a vlue.
Why map:
When you want to use something other than a string as a key
Maps will return data in the same order it was inserted not like other objects.
Sets
Are collections of values.that can be any type.the rule of the sets is values should be unique.
If you try to add the same value again it will only keep only one instance of it.
Arrays and Array Methods
Spread Operator
Array Destructuring
Search Array
ECMA Script Objects
Object Literals
Spread operator with objects
Destructuring Objects
for/of Loop
Classes
Inherit with classes
Getting and Setting class values
Object
Classes
You can have getters and setters in classes and regular objects.
ECMA Script functions
.repeat() - repeat a string for some time.
Default function parameters
Arrow functions
Arrow function helps to keep the scope.
Generators
Generators are new types of functions that allow us to pause functions in the middle of execution and resume later.Yield keyword will be used anytime where we want to pause, and next will be used to continue the function.
Asynchronous Javascript
Promises
Used with the asynchronous behavior in the javascript.when there is a delay of doing something.
This boilerplate has tremendously reduced by fetch.
Fetch natively works in browsers, and there are libraries using fetch.
No comments:
Post a Comment