coding conventions is a set of rules or guidelines when writing code. - The motivation behind creating code style is to make sure developers write based on the guideline thus it will be able to be read by other developers. - It is also helpful to avoid developers creating mistakes while writing code. - Usually there are more than one code style for a particular programming language or framework.
PHP a. PSR-2 (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) b. Pear PHP (http://pear.php.net/manual/en/standards.php) 3. Javascript a. Airbnb (https://github.com/airbnb/javascript) b. Mozilla (https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style) Examples of Code Style