SyntaxError: missing variable name

javascript, jslint

Solution

Never mind, I found the answer by reading What is the 'char' keyword used for?.

Apparently `char` was reserved in ECMA 3, but removed as a reserved keyword in ECMA 5.

I've renamed my `var` now, to prevent any potential issues arising with old implementations.

Problem

I'm running JavaScript Lint on a project to check for common programming errors. I'm hitting this error: SyntaxError: missing variable name On this line: ``` var char, font; ``` From Googling, I've found that that error is shown when a reserved word is used as a variable name; but judging by MDN's list, neither `char` nor `font` is reserved. What is the problem here?

Original source

Related problems