Are you sure you're getting this? Is this statement true or false?
We want to create a Person object with the following respective values for its properties:
name
:John
age
: 18height
: 182
Assuming it has a basic class definition and constructor, does the following piece of code successfully create the object and print its name to the console?
JAVASCRIPT
1let myPerson = Person('John', 18, 182)
2console.log(myPerson.name)
Press true if you believe the statement is correct, or false otherwise.