constfor values that must not change, or that you want to throw an error if they are changed.
varvariables do not have block scope.
- They are scoped to the body of the containing function.
varis used outside a function body, it declares a global variable.
|jQuery can’t find plugins: “TypeError: xxxxx is not a function”||jQuery is being loaded twice.||Remove the second jQuery.|