I am trying the below code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
alert("welcome to JS world");
Here abcs.js is an empty file present in the same location of this html.
On execution alert("welcome to JS world"); works but alert("checking"); doesn't work.