SP.ContentTypeId.toString Method (sp.js)
Returns a string of hexadecimal characters that represents the content type identifier (ID).
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.ContentTypeId.toString()
Return value
Type: String
The text that represents the content type ID.
Remarks
This method returns the text that represents the content type ID. The first two characters are always always "0x".