- Editor: You need a text editor for writing your code. You can choose any editor like notepad++, Visual Studio Code, Atom, Sublime Text, WebStorm or any other.
Step 1: Create an HTML file and paste the following code.
Open the file in any browser and you will get an alert message.
Example: <script src=”./external.js”></script>
Other scripting languages: