Created
July 11, 2019 15:25
-
-
Save pnavarrc/80f50bc6e3b0dd4c2897262c1f185e34 to your computer and use it in GitHub Desktop.
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
// Out | |
{ | |
type: "FunctionExpression", | |
params: [ | |
{ | |
type: "Identifier", | |
name: "n" | |
} | |
], | |
body: { | |
type: "BlockStatement", | |
body: [ | |
{ | |
type: "ReturnStatement", | |
argument: { | |
type: "BinaryExpression", | |
right: { | |
type: "Identifier", | |
name: "n" | |
}, | |
left: { | |
type: "Identifier", | |
name: "n" | |
}, | |
operator: "*" | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment