B). Link-File Inside Folder
If your HTML file is not in the root or it’s inside the folder and the js file is in another folder. Then you have to write the script like below.
“../” moves you inside the parent directory. Thus, the server offers you access to JS file & operate on the client-side.
Wed Mar 25 2015 05:30:00 GMT+0530 (India Standard Time)