Sobes.tech

/* What will be output in the console */ let value = 2; function showValue() { console.log(value); } function wrapper() { let value = 3; console.log(value); showValue(); } wrapper();

137

/* Write a function get(obj, path), which takes an object obj and a string path representing the path to a value in the object. - If the path exists, the function should return the corresponding value - If the path does not exist, it should return undefined - The path is given as a string separated by dots(.) */ function get(obj, path) { } get({ a: { b: { c: "d" } } }, "a.b.c"); get({ a: { b: { c: "d" } } }, "a.b"); get({ x: { y: { z: 42 } } }, "x.c");

124

Tell about yourself: what projects have you done recently, what technologies, stack, what do you like, what do not?

115
/4