Home > Mobile >  Assignment to constant variable one set null to dueDate
Assignment to constant variable one set null to dueDate

Time:05-10

I am getting below error after jquery upgrade to 3.6 version

Error :-

Uncaught TypeError: Assignment to constant variable.

In the line :-

var Item = function () {
  Name = null
  dueDate = null // here in the console showing the error 
  ns = null
}; 

Any idea how to fix this

CodePudding user response:

Looks like at least one of the variables declared with const. name,dueDate or ns. You need to define them with let or you should not re-assign them.

  • Related