SAP Knowledge Base Article - Public

3160882 - "no-var: Unexpected var, use let or const instead" warning in Script Tasks in Process Governance

Symptom

In Script Tasks, there are now "no-var: Unexpected var, use let or const instead" appears. What do we need to do?

Resolution

From ECMAScript 6 JavaScript version, you can use "let" and "const" keywords for variables with block scope instead of function scope, which is common in many other programming languages. They are only warnings to encourage users to use "let" or "const" to avoid "var" which is a function scope variables easily causes mistakes happen.

Keywords

no-var,unexpected,var,let,const,warning,script,tasks,task,process,governance,process_governance,javascript , KBA , BPI-SIG-PG-JS , JavaScript for SAP Signavio Process Governance , How To

Product

SAP Signavio Process Governance all versions ; Workflow Accelerator by Signavio all versions