You already are, the FCC console is turning the object into a string (so you get [Object object], which is what it is). If you open the browser console it will allow you to drill into it. If you want it to print the literal representation of the object in the FCC console, you can use JSON.stringify, like console.log(JSON.stringify(createPerson........
Thanks for reply but I want print out each value of the properties just like in object we do x.name or x[‘name’] etc.
With JSON.stringify(....) we can get all the properties and values together.
createPerson.name ....
``` doesn't work here
regards
console.table(createPerson......)? (that’ll work great in the browser console but not the FCC one). As I say, you’re already logging the whole object, it’s accessible in the actual browser console, just not the FCC one
createPerson.name doesn’t work because createPerson is a function. const result = crearePerson(..... then result.name works, because result is the value createPerson evaluates to