<!DOCTYPE html>
<html>
<body>
<h1>JavaScript location.port Property</h1>
<p id="demo"></p>
<script>
let port = location.port;
document.getElementById("demo").innerHTML = port;
</script>
</body>
</html>