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.
medium