javascript - Using "alert" and "confirm" as variable names -


according this mdn article , other source can find, "alert" , "confirm" not reserved words in javascript. why not listed here, , safe use variable names inside of function bodies?

they safe use inside function bodies long declare them var. if don't declare them var, overwrite them in global (window) scope, cause lot of issues.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -