Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
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 answers
Answer question

0

Replace script tag in your index file with this :

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

about 4 years ago · Juan Pablo Isaza Report

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!