Result Size: 625 x 664
x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Statements</h1>
<h2>The for...in Loop</h2>
<p>Iterate over the properties of window.location:</p>
<p id="demo"></p>
<script>
let text = "";
for (let x in location) {
  text += x + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>