Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Objects</h1>
<h2>The : Operator</h2>
<p id="demo"></p>
<script>
const size = {x: 5, y: 10, z: 1};
document.getElementById("demo").innerHTML = "The width is "  + size.x;
</script>
</body>
</html>