Skip to content

Instantly share code, notes, and snippets.

@Maccauhuru
Created January 16, 2019 09:44
Show Gist options
  • Save Maccauhuru/a87329ccc11ec45f276f8a3950c265b9 to your computer and use it in GitHub Desktop.
Save Maccauhuru/a87329ccc11ec45f276f8a3950c265b9 to your computer and use it in GitHub Desktop.
ES6 Arrow Functions Example
//An ES6 Arrow function named addNumbers that accepts 2 input parameters
const addNumbers = (num1,num2) => {
let sum = num1 + num2;
return sum;
}
//To invoke the function,i will call its name (addNumbers) and give it 2 parameters
addNumbers(5,2); // will output : 7
addNumbers(100,1); // will output : 101
@haroondhanyal
Copy link

sir can u d=send me simple oop projects on library management sysytem
with filing polymorphisim inheritance..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment