Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Last active October 31, 2023 17:12
Show Gist options
  • Save sandrabosk/b19c8f418b47c8b37ad068f7af11cc2d to your computer and use it in GitHub Desktop.
Save sandrabosk/b19c8f418b47c8b37ad068f7af11cc2d to your computer and use it in GitHub Desktop.

Checking for understanding

Use the given object and perform the following operations on it:

const ironhacker = {
    firstName: 'marko',
    age: 39,
    favorites: ['JavaScript', 'Node'],
    isSatisfied: true,
    worksAt: 'Google',
    isRemote: false
}

// 1: Add 'React' as one more favorite tech
// ... your code here

// 2: Update ironhacker's age to 29
// ... your code here

// 3: Remove the 'isRemote' property
// ... your code here

// 4: Add a new property: 'didGraduate' and set it to a valid boolean value
// ... your code here

// 5: list all keys of the ironhacker object
// ... your code here

// 6: check if ironhacker has property 'worksAt'
// ... your code here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment