SP.ContentTypeId.stringValue property (sp.js)

A string of hex characters that represents the content type ID.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value =SP.ContentTypeId.get_stringValue()