How do you use HTML to include an external JavaScript file in a webpage?

Instruction: Explain the process of linking an external JavaScript file to an HTML document.

Context: This question evaluates the candidate's ability to integrate JavaScript into HTML, a fundamental task in web development.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

Use a script element with src and an explicit closing tag...

Related Questions