Skip to content

Commit 6c5efe8

Browse files
authored
Create Arrow.js
1 parent b899e9f commit 6c5efe8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

Arrow.js

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// const function = (parameter) => {
2+
// code block function body
3+
4+
// };
5+
6+
7+
//const function =(parameter) => {
8+
// function body
9+
//};
10+
11+
//const add = (a,b)=> a+b;
12+
//console.log(add(2,3));
13+
14+
/*const add = (a,b )=> a+b;
15+
console.log(add(2,7));
16+
*
17+
18+
const add = (a,b) => a+b;
19+
console.log(add(2,8));
20+
/
21+
22+
const add = (a,b)=> a+b;
23+
console.log(add(2,70));
24+
25+
26+
27+
const greet = () => console.log("Hello , world");
28+
greet();
29+
30+
*
31+
32+
const greet = () => console.log("Helllo world");
33+
greet();
34+
*
35+
36+
37+
const greet = () => console.log("Hello world");
38+
greet();
39+
*/
40+
const greeet = () => console.log('object');
41+
greeet();
42+
43+
const greet = () => console.log("Hi");
44+
greet();

0 commit comments

Comments
 (0)