SP.Utilities.PrincipalInfo.displayName property (sp.js)
Gets a value that specifies the display name of the principal.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value =SP.Utilities.PrincipalInfo.get_displayName()
Return value
Type: String