Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
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 Respuestas
Responde la pregunta

0

Replace script tag in your index file with this :

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

about 4 years ago · Juan Pablo Isaza Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda