Sobes.tech

Frontend

/* Mida kuvab konsool */ let value = 2; function showValue() { console.log(value); } function wrapper() { let value = 3; console.log(value); showValue(); } wrapper();

137

/* Write the 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, the function should return undefined - The path is passed 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

Raksturo sevi: ar kādiem projektiem nesen strādāji, kādas tehnoloģijas un stekus izmantoji, kas tev patīk un kas nepatīk?

115
/4