Let’s make an array in number data type.
const evenNumber = [2, 4, 6, 8, 10];
Yep! This is an array. So now I will show you 10 methods which is so useful.
things to know: when we use var keyword we can use it before initialize which was used es5. but in es6 let and const keyword cannot be used before initialize or you will get an error.
In ES6 we use let and const to declare a variable instead of var keyword. var keyword was global usage. that mean if we declarer a variable using var keyword we can use that variable anywhere. but…
The list we are going to learn…
1. Variable (var, let) and const
2. For loop
3. Data types
4. Conditionals (if.. else)
8. Map, filter, find
We can declare variable in two way:
1. Using var keyword
2. Using let keyword
There are few differences between var and let. Var is a global variable. The scope of var variable is the full web. we can initialize…
Front end web developer. I love to learn and share my learning knowledge with everyone