Arrows functions in javascript
Arrow function is a javascript function but it has no "function" keyword, it has this symbol "=>" after function's small brackets.
Arrows function vs normal function in javascript
- Arrow function doesn't have 'function' keyword.
- In arrow function we can't use 'this' keyword as 'this' keyword always target normal parent function.
1) Normal function declaration
1function normalFunction() {
2 console.log("Hello world");
3 };
2) Arrows function declaration
1() => {
2 console.log("Hello world!");
3 };
About
Moiz is a software engineer from Arid University with a passion for writing tech tutorials and doing coding. I am continously produce JavaScript and other web development technology tutorials in concepts through easy-to-understand explanations written in plain English.I have expertise in next js ,react js ,javascript,html,bootstrap and node js.
Follow him on TwitterHassan is a software engineer from kohat university of science and technology with a passion for writing tech tutorials and doing javascript practices on daily basis.I have expertise in next js ,react js ,javascript,html,bootstrap and node js. Problem Solving and making concpets is my strong point.
Follow him on TwitterTags
Click to see all tutorials tagged with: