{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "arr", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 10 } } }, "init": { "type": "ArrayExpression", "elements": [ { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 17, "column": 14 }, "end": { "line": 17, "column": 15 } } }, { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 17 } } }, { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 17, "column": 18 }, "end": { "line": 17, "column": 19 } } }, { "type": "NumberLiteral", "value": 4, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 21 } } } ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 22 } } }, "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 22 } } } ], "kind": "const", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 23 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 12 } } }, "property": { "type": "BinaryExpression", "operator": "+", "left": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 14 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 18 } } }, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 18 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 19 } } }, "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 19 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "print", "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 10 } } }, "arguments": [ { "type": "StringLiteral", "value": "helloWorld", "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 23 } } } ], "optional": false, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 24 } } }, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 25 } } } ], "loc": { "start": { "line": 19, "column": 21 }, "end": { "line": 21, "column": 2 } } }, "alternate": null, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 21, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 22, "column": 1 } } }