/* 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();
Frontend
What development environment or build tool did you use on the project?
How can Map/Set and objects be copied? Shallow and deep copying.
What are WeakSet and WeakMap, and how do they differ from Set and Map?
Do you mainly code in TypeScript or sometimes in pure JavaScript?
Have you ever configured a linter, formatter, or connected plugins?
What would you take to build a UI kit from scratch?
Is it possible to create an object without a prototype in JavaScript?
/* 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");
What are validation libraries generally used for?
What are the approaches to writing CSS?
Besides Next.js, what other build tools and development environments have you worked with?
What is a closure and what problem can it cause?
Tell about yourself: what projects have you done recently, what technologies, stack, what do you like, what do not?