Try this one: tab one
<!doctype html>
<html>
	<head>
		<title>Using External JS Library</title>
	</head>
	<body>
		<div id="myDiv">Hello Studytonight!</div>
        <script src="USE jquery cdn"></script>
		<script >
			// change text of div
			$("#myDiv").text("Welcome to Studytonight!");
		</script>
	</body>
</html>
tab two:
let mobiles = ["Apple", "Samsung", "One Plus", "Moto", "Huwaei"];
// using forEach function
mobiles.forEach(printMobs);
// define the callback function
function printMobs(item,index) {
	console.log(`Rank ${index}: ${item} Mobiles`);
}