JSLint will throw the "Weird assignment" error when it encounters an assignment expression in which the left hand and right hand side expressions are "similar". In the following example we declare a variable x and then attempt to assign it to itself:
This error is raised to highlight a potentially confusing and completely pointless piece of code. There are no situations in which you would need to assign something to itself.