[Solved] How to remove issues in jQuery [closed]


  1. Probably he suggested that you are only using global variables, and no functions with parameters. That can be a choice, but I’d say it doesn’t matter in smaller web applications.

  2. Hardcoded static data can be irritating when you want to change it. If you decide that the color must me more bluish than it is now, you have to find and replace every single place where you used that color. Using a variable for that color, you only have to change something once, and you avoid hard-to-find bugs

  3. Also practical reasons. Instead of editing the entire JavaScript file, you only have to change the small init file. This can be handy for testing purposes, or in big projects.

solved How to remove issues in jQuery [closed]