Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

278
Visualizações
Is there a default JavaScript file naming convention?

So I've just started building my personal website, and I need an HTML file, a CSS file, and JavaScript file. But, I'm not sure what to name my JavaScript file. Here are some of my thoughts:

  • "index.js"
  • "app.js"
  • "main.js"

Please correct me if there is a default JavaScript file naming convention. Otherwise, I might go with "index.js" because it sounds the most natural.

Help would be appreciated!

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

It is really up to you, although index.js, app.js, and main.js are usually what is used to name the main javascript file of an application. For others module or component files, use a name that describes what the code within the file does, like services.js for a file that handle everything related to services section of your application.

about 4 years ago · Juan Pablo Isaza Relatório

0

https://google.github.io/styleguide/jsguide.html

This URL shows JavaScript's naming conventions. But naming is up to you. Naming conventions come in many forms, but I recommend that you use the prescribed method. This will make it easier for other developers to understand what you've made, and it's easier for you to understand what other developers have made.

Best regards.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda