Examining Properties in an Object - For... In & Object.Keys

Pseudocode:
You are provided with an object called checkObj . Using a for... in loop, determine if the object contains the property foundNum . If it exists, reassign the value of found to 1.

const checkObj = {
  oddNum: 1,
  evenNum: 2,
  foundNum: 5,
  randomNum: 18
};

let found = 0;

maybe this:

for (let property in checkObj) {
  if (property === "foundNum") {
    found = 1;
  }
}

Although I think that its easier to do this:

if (checkObj.foundNum) {
  found = 1;
}