Skip to content

Instantly share code, notes, and snippets.

@1999
Created January 8, 2014 08:51
Show Gist options
  • Save 1999/8313773 to your computer and use it in GitHub Desktop.
Save 1999/8313773 to your computer and use it in GitHub Desktop.
{
"loc": null,
"type": "Program",
"body": [
{
"loc": null,
"type": "LetStatement",
"head": [
{
"loc": null,
"type": "VariableDeclarator",
"id": {
"loc": null,
"type": "Identifier",
"name": "i"
},
"init": {
"loc": null,
"type": "Literal",
"value": 0
}
}
],
"body": {
"loc": null,
"type": "ForStatement",
"init": null,
"test": {
"loc": null,
"type": "BinaryExpression",
"operator": "<",
"left": {
"loc": null,
"type": "Identifier",
"name": "i"
},
"right": {
"loc": null,
"type": "Literal",
"value": 10
}
},
"update": {
"loc": null,
"type": "UpdateExpression",
"operator": "++",
"argument": {
"loc": null,
"type": "Identifier",
"name": "i"
},
"prefix": false
},
"body": {
"loc": null,
"type": "BlockStatement",
"body": []
}
}
}
]
}
{
"loc": null,
"type": "Program",
"body": [
{
"loc": null,
"type": "ForStatement",
"init": {
"loc": null,
"type": "VariableDeclaration",
"kind": "let",
"declarations": [
{
"loc": null,
"type": "VariableDeclarator",
"id": {
"loc": null,
"type": "Identifier",
"name": "i"
},
"init": {
"loc": null,
"type": "Literal",
"value": 0
}
}
]
},
"test": {
"loc": null,
"type": "BinaryExpression",
"operator": "<",
"left": {
"loc": null,
"type": "Identifier",
"name": "i"
},
"right": {
"loc": null,
"type": "Literal",
"value": 10
}
},
"update": {
"loc": null,
"type": "UpdateExpression",
"operator": "++",
"argument": {
"loc": null,
"type": "Identifier",
"name": "i"
},
"prefix": false
},
"body": {
"loc": null,
"type": "BlockStatement",
"body": []
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment