Created
November 1, 2021 23:36
-
-
Save Blazing-Mike/27d0203c82a89389a882ada87e096764 to your computer and use it in GitHub Desktop.
Improving Readabilty of code with Arrow functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Normal function | |
function sum(num1, num2){ | |
return num1 + num2; | |
} | |
let output =sum(10, 4); | |
console.log(output) | |
//Arrow function | |
let sum = (num1, num2) => return num1 + num2; | |
let output2 =sum(10, 4); | |
console.log(output); | |
//This keyword |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment