-
-
Save QuocCao-dev/bebbb2d83ab57effb69c6f0cff84621b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var name = "Francis"; | |
| var lastname = "Jones" | |
| var age = 23; | |
| var obj | |
| function createObject(name,lastname,age){ | |
| obj = { | |
| name:name, | |
| lastname:lastname, | |
| age:age, | |
| } | |
| return obj; | |
| } | |
| console.log(createObject(name,lastname,age)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.