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

javascript - Add class to another page attribute using URL id - Jquery -

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

IF statement in MySQL trigger -