Ad
  • Default User Avatar

    If the actual object field was called name you could use either obj['name'] or obj.name. However, name is a variable that represents some other value in this case.