<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript in Operator</title>
</head>
<body>
<pre> <!-- Use pre element for work document.writeln() method -->
<script type="text/javascript">
var myObj = new Object(); // or you can write: var myObj = new Object;
myObj.name = "Opal Kole";
myObj.address = "63 street Ct.";
myObj.age = 48;
myObj.married = true;
document.writeln("name" in myObj); // Returns true
document.writeln("birthdate" in myObj); // Returns false
// birthdate propery not in myObj
document.writeln("address" in myObj); // Returns true
document.writeln("age" in myObj); // Returns true
document.writeln("married" in myObj); // Returns true
</script>
</pre>
</body>
</html>