Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
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
You can’t perform that action at this time.