In JavaScript, the word undefined is not a reserved keyword. So it can be used as an identifier in any scope except global scope, but doing so will make the code difficult to maintain and debug. So it is recommended that not to use undefined as a variable name.