1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "arr", 12 "loc": { 13 "start": { 14 "line": 17, 15 "column": 7 16 }, 17 "end": { 18 "line": 17, 19 "column": 10 20 } 21 } 22 }, 23 "init": { 24 "type": "ArrayExpression", 25 "elements": [ 26 { 27 "type": "NumberLiteral", 28 "value": 1, 29 "loc": { 30 "start": { 31 "line": 17, 32 "column": 14 33 }, 34 "end": { 35 "line": 17, 36 "column": 15 37 } 38 } 39 }, 40 { 41 "type": "NumberLiteral", 42 "value": 2, 43 "loc": { 44 "start": { 45 "line": 17, 46 "column": 16 47 }, 48 "end": { 49 "line": 17, 50 "column": 17 51 } 52 } 53 }, 54 { 55 "type": "NumberLiteral", 56 "value": 3, 57 "loc": { 58 "start": { 59 "line": 17, 60 "column": 18 61 }, 62 "end": { 63 "line": 17, 64 "column": 19 65 } 66 } 67 }, 68 { 69 "type": "NumberLiteral", 70 "value": 4, 71 "loc": { 72 "start": { 73 "line": 17, 74 "column": 20 75 }, 76 "end": { 77 "line": 17, 78 "column": 21 79 } 80 } 81 } 82 ], 83 "loc": { 84 "start": { 85 "line": 17, 86 "column": 13 87 }, 88 "end": { 89 "line": 17, 90 "column": 22 91 } 92 } 93 }, 94 "loc": { 95 "start": { 96 "line": 17, 97 "column": 7 98 }, 99 "end": { 100 "line": 17, 101 "column": 22 102 } 103 } 104 } 105 ], 106 "kind": "const", 107 "loc": { 108 "start": { 109 "line": 17, 110 "column": 1 111 }, 112 "end": { 113 "line": 17, 114 "column": 23 115 } 116 } 117 }, 118 { 119 "type": "IfStatement", 120 "test": { 121 "type": "BinaryExpression", 122 "operator": "<", 123 "left": { 124 "type": "NumberLiteral", 125 "value": 0, 126 "loc": { 127 "start": { 128 "line": 19, 129 "column": 5 130 }, 131 "end": { 132 "line": 19, 133 "column": 6 134 } 135 } 136 }, 137 "right": { 138 "type": "MemberExpression", 139 "object": { 140 "type": "Identifier", 141 "name": "arr", 142 "loc": { 143 "start": { 144 "line": 19, 145 "column": 9 146 }, 147 "end": { 148 "line": 19, 149 "column": 12 150 } 151 } 152 }, 153 "property": { 154 "type": "BinaryExpression", 155 "operator": "+", 156 "left": { 157 "type": "NumberLiteral", 158 "value": 1, 159 "loc": { 160 "start": { 161 "line": 19, 162 "column": 13 163 }, 164 "end": { 165 "line": 19, 166 "column": 14 167 } 168 } 169 }, 170 "right": { 171 "type": "NumberLiteral", 172 "value": 2, 173 "loc": { 174 "start": { 175 "line": 19, 176 "column": 17 177 }, 178 "end": { 179 "line": 19, 180 "column": 18 181 } 182 } 183 }, 184 "loc": { 185 "start": { 186 "line": 19, 187 "column": 13 188 }, 189 "end": { 190 "line": 19, 191 "column": 18 192 } 193 } 194 }, 195 "computed": true, 196 "optional": false, 197 "loc": { 198 "start": { 199 "line": 19, 200 "column": 9 201 }, 202 "end": { 203 "line": 19, 204 "column": 19 205 } 206 } 207 }, 208 "loc": { 209 "start": { 210 "line": 19, 211 "column": 5 212 }, 213 "end": { 214 "line": 19, 215 "column": 19 216 } 217 } 218 }, 219 "consequent": { 220 "type": "BlockStatement", 221 "statements": [ 222 { 223 "type": "ExpressionStatement", 224 "expression": { 225 "type": "CallExpression", 226 "callee": { 227 "type": "Identifier", 228 "name": "print", 229 "loc": { 230 "start": { 231 "line": 20, 232 "column": 5 233 }, 234 "end": { 235 "line": 20, 236 "column": 10 237 } 238 } 239 }, 240 "arguments": [ 241 { 242 "type": "StringLiteral", 243 "value": "helloWorld", 244 "loc": { 245 "start": { 246 "line": 20, 247 "column": 11 248 }, 249 "end": { 250 "line": 20, 251 "column": 23 252 } 253 } 254 } 255 ], 256 "optional": false, 257 "loc": { 258 "start": { 259 "line": 20, 260 "column": 5 261 }, 262 "end": { 263 "line": 20, 264 "column": 24 265 } 266 } 267 }, 268 "loc": { 269 "start": { 270 "line": 20, 271 "column": 5 272 }, 273 "end": { 274 "line": 20, 275 "column": 25 276 } 277 } 278 } 279 ], 280 "loc": { 281 "start": { 282 "line": 19, 283 "column": 21 284 }, 285 "end": { 286 "line": 21, 287 "column": 2 288 } 289 } 290 }, 291 "alternate": null, 292 "loc": { 293 "start": { 294 "line": 19, 295 "column": 1 296 }, 297 "end": { 298 "line": 21, 299 "column": 2 300 } 301 } 302 } 303 ], 304 "loc": { 305 "start": { 306 "line": 1, 307 "column": 1 308 }, 309 "end": { 310 "line": 22, 311 "column": 1 312 } 313 } 314} 315