appinsights trackException javascript

JavaScript
trackException(exception: Error, handledAt?: string, properties?: {[string]:string}, measurements?: {[string]:number}, severityLevel?: AI.SeverityLevel)

Source

Also in JavaScript: