SP.UpgradeInfo.status property (sp.js)

The current status of the site collection upgrade.

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

var value =SP.UpgradeInfo.get_status()

Return value

NUMBER