Displaying people


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

Displayying People
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

why do we use person.firstName instead of this.person inside the print person function?



Replace this line with your code. 



#2

Hey @3l1 :smiley:
The answer to your question is that the exercise is asking for the name property of the person, not the person object. If you write “this.person”, it will give you an undefined type since you’re not specifying a method with that object.

Hope this helps!!!


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.