scrimba
JS Key in Object
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

JS Key in Object
AboutCommentsNotes
JS Key in Object
Expand for more info
index.js
run
preview
console
let user = {
name: "John Doe",
age: 40
};
// 'key' in object;
// object.hasOwnProperty('key');
// object?.key


































// const checkIfKeyExist = (objectName, keyName) => {
// let keyExist = Object.keys(objectName).some(key => key === keyName);
// return keyExist;
// };
































Console
false
,
/index.html
-4:41