SP.NavigationNode.id property (sp.js)
Gets a value that specifies the identifier for the navigation node.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.NavigationNode.get_id ()
Return value
Type: Number