Keywords cannot be used as variable names or function names
The code copy is as follows:
break
case
catch
Continue continue
default
delete delete
do
else
Finally
for
function
if
in
instanceof
new
Return
switch
This
throw
try
typeof
var
void
While
with
Reserved words are prepared for future keywords
It cannot be used for variables or function names.
The code copy is as follows:
abstract
boolean
byte
char
class
const
debugger
double
enum
export
extends
Final
float
goto
Implements
import
int
interface
long
native
package
Private
protected
public
Short
static
super
synchronized
throws
transient
volatile
When defining variables, do not use keywords or reserved words, otherwise some inexplicable situations will occur.