What is the correct syntax for referring to an external script called 'script.js

Practice Questions

Q1
What is the correct syntax for referring to an external script called 'script.js'?
  1. <script src='script.js'>
  2. <script href='script.js'>
  3. <script name='script.js'>
  4. <script file='script.js'>

Questions & Step-by-Step Solutions

What is the correct syntax for referring to an external script called 'script.js'?
Correct Answer:
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely