What Should I Name My Javascript File

File names must be all lowercase and may include underscores ( _ ) or dashes ( – ), but no additional punctuation. Follow the convention that your project uses. Filenames’ extension must be . js .

What should I name a JavaScript file?

File names must be all lowercase and may include underscores ( _ ) or dashes ( – ), but no additional punctuation. Follow the convention that your project uses. Filenames’ extension must be . js .

How do you name a file professionally?

  1. Files should be named consistently.
  2. File names should be short but descriptive (<25 characters) (Briney, 2015)
  3. Avoid special characters or spaces in a file name.
  4. Use capitals and underscores instead of periods or spaces or slashes.
  5. Use date format ISO 8601: YYYYMMDD.
  6. Include a version number (Creamer et al.
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest