mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
817 B
817 B
Change
Instructions
Create 2 functions:
-
get
: a function that takes a key and returns the corresponding value from thesourceObject
. -
set
: a function that takes a key and a value. Update the value for the corresponding property of thesourceObject
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,
}