<html>
<body>
<h1>JavaScript Objects</h1>
<h2>The Object.hasOwn() Method</h2>
<p>Check if a property is the own property of an object:</p>
<p id="demo"></p>
<script>
const myObject = {
age: 50,
};
let text = Object.hasOwn(myObject, "age");
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>