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

110
Visualizações
my javascript file will not link to my index.html file and i see nothing wrong with it. What is wrong with it?

here is my index= https://github.com/25garcial/calculator/blob/main/index.html

here is my JavaScript= https://github.com/25garcial/calculator/blob/main/script.js

I don't know what is wrong with the code and i have asked my teacher and he does not know either.

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

0

Replace script tag in your index file with this :

<​script​ ​src="​script.js​"​>​</​script​>

about 4 years ago · Juan Pablo Isaza Relatório

0

At the bottom of the body tag in index.html file link your Javascript file with a script tag:

<script src="./yourfilename.js"></script>
about 4 years ago · Juan Pablo Isaza Relatório

0

To link your script try using:

<script src="script.js"></script>

For more informations see : https://www.w3schools.com/tags/att_script_src.asp

Also note: You can use the defer attibute if you want your script to load after the HTML parsing and loading rather than putting it at the end of your body.

<script src="script.js" defer></script>
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