This is my code on Atom. For some reason I can not get the list to appear on the website.
Any thoughts ?
<head>
<title>A Great Webite</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<h1> My favourite fruits </h1>
<ol id="fruitList">
</ol>
<script>
var fruits = ["Apple", "Orange", "Banana"];
var list = $("#fruitList");
$.each(fruits,function(index,value){
$("</li>").text(value).appendTo(list);
});
console.log(fruits);
</script>
</body>