SP.UserProfiles.PersonProperties.displayName property (sp.userprofiles)
Gets the user's display name.
Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.UserProfiles.PersonProperties.get_displayName()
Return value
String
The user's display name.
See also
Other resources
How to: Retrieve user profile properties by using the JavaScript object model in SharePoint 2013