Can anyone help me? I'm trying to call a JS file but is not working. I'm a newbie and really don't have any idea why.
<html>
<head>
<title>Stack</title>
<meta charset=utf-8>
<script>
var fruits = new array();
fruits[0] = "Apple";
fruits[1] = "Strawberry";
fruits[2] = "Orange";
for(i=0; i<3; i++){
document.write(fruits[i]+"</br>");
}
</script>
</head>
<body>
<div>JavaScript</div>
</body>
</html>