|
Java example source code file (objectLitExpr.js.EXPECTED)
The objectLitExpr.js.EXPECTED Java example source code{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "obj" }, "right": { "type": "ObjectExpression", "properties": [] } } } ] } { "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "p" }, "right": { "type": "ObjectExpression", "properties": [ { "key": { "type": "Identifier", "name": "x" }, "value": { "type": "Literal", "value": 10 }, "kind": "init" }, { "key": { "type": "Identifier", "name": "y" }, "value": { "type": "Literal", "value": 2 }, "kind": "init" } ] } } } ] } { "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "p" }, "right": { "type": "ObjectExpression", "properties": [ { "key": { "type": "Literal", "value": "x" }, "value": { "type": "Literal", "value": 10 }, "kind": "init" }, { "key": { "type": "Literal", "value": "y" }, "value": { "type": "Literal", "value": 2 }, "kind": "init" } ] } } } ] } { "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "p" }, "right": { "type": "ObjectExpression", "properties": [ { "key": { "type": "Identifier", "name": "x" }, "value": { "type": "FunctionExpression", "id": null, "params": [], "defaults": [], "rest": null, "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "xValue" } } ] }, "generator": false, "expression": false }, "kind": "get" }, { "key": { "type": "Identifier", "name": "y" }, "value": { "type": "FunctionExpression", "id": null, "params": [], "defaults": [], "rest": null, "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "yValue" } } ] }, "generator": false, "expression": false }, "kind": "get" } ] } } } ] } Other Java examples (source code examples)Here is a short list of links related to this Java objectLitExpr.js.EXPECTED source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.