Curriculum
Course: JavaScript Basic
Login

Curriculum

JavaScript Basic

JSHome

0/216
Text lesson

Use Lower Case File Names

  • Most web servers, like Apache and Unix, are case-sensitive, so london.jpg and London.jpg are treated as different files.
  • Some servers, like Microsoft IIS, are case-insensitive, allowing access to london.jpg as London.jpg.
  • Using mixed case requires strict consistency, as discrepancies can cause errors when moving to case-sensitive servers.
  • To avoid issues, adopt the best practice of using lowercase file names consistently.

Performance

Coding conventions do not affect how computers execute programs. Most rules have minimal impact on performance.

Indentation and extra spaces are not crucial in small scripts.

For code during development, prioritize readability. However, larger production scripts should be optimized and minimized.