Skip to content

Instantly share code, notes, and snippets.

@pnavarrc
Created July 11, 2019 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pnavarrc/321ca54a385b4fe3c7447383507dcca5 to your computer and use it in GitHub Desktop.
Save pnavarrc/321ca54a385b4fe3c7447383507dcca5 to your computer and use it in GitHub Desktop.
Code Snippet
{
type: "VariableDeclaration",
declarators: [
{
type: "VariableDeclarator",
id: {
type: "Identifier",
name: "square"
},
init: {
type: "ArrowFunctionExpression",
params: [
{
type: "Identifier",
name: "n"
}
],
body: {
type: "BinaryExpression",
left: {
type: "Identifier",
name: "n"
},
right: {
type: "Identifier",
name: "n"
},
operator: "*"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment