SP.WebInformation.configuration property (sp.js)
Configuration identifier of the SharePoint Web site.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value =SP.WebInformation.get_configuration()
Return value
A Int16 (short integer) value representing the configuration identifier.