public/subjects/change
davhojt 1e68b12c89
docs(change): correct grammar
2022-04-30 00:13:32 +01:00
..
README.md docs(change): correct grammar 2022-04-30 00:13:32 +01:00

README.md

Change

Instructions

Create 2 functions:

  • get: a function that takes a key and returns the corresponding value from the sourceObject.

  • set: a function that takes a key and a value. Update the value for the corresponding property of the sourceObject and return the value.

Notions

Code provided

The provided code will be added to your solution, and does not need to be submitted.

const sourceObject = {
  num: 42,
  bool: true,
  str: 'some text',
  log: console.log,
}