Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

How can I link my Javascript function in an external file to my html file? Here you can see my code from my html and Javascript. I tried with the <script> but this didn’t work out :(
**HTML**
<html>
<head>
<title>Digital Clock</title>
<link rel="stylesheet" href="clock.css">
</head>
<body>
<h1>Digital Clock</h1>
<script type="text/javascript" src="clock.js"></script>
</script>
</body>
</html>
**Javascript**
function showTime(){
var date = new Date();
var h = date.getHours(); // 0 - 23
var m = date.getMinutes(); // 0 - 59
var s = date.getSeconds(); // 0 - 59
var session = "AM";
if(h == 0){
h = 12;
}
if(h > 12){
h = h - 12;
session = "PM";
}
h = (h < 10) ? "0" + h : h;
m = (m < 10) ? "0" + m : m;
s = (s < 10) ? "0" + s : s;
var time = h + ":" + m + ":" + s + " " + session;
document.getElementById("MyClockDisplay").innerText = time;
document.getElementById("MyClockDisplay").textContent = time;
setTimeout(showTime, 1000);
}
showTime();
032f50ee7f7d489db3b05e204fe139
9ee5b5ed90ff4f7b9e69d1681de3b4
34bcef38725b4e6eb5224ae028f17e
Paul Hives
Inshot Pro
zero zero
TiggaBiscuit
Roger Ross
Yavin Fickel
da04b39dc1b94b8395443a37a964c6
Connor
a83662b77b56408096139dd19e615a