friends[prop].firstName === name?


#1

if(friends[prop].firstName === name) ??
friends[prop].firstName === name or friends.prop.firstName === name ???

friends[prop].firstName === name === friends.prop.firstName === name


#2

friends[prop].firstName === name

prop is a dynamic variable that is changing so it must be represented as a subscript, not a specific attribute.


#3

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