Perguntas de entrevista para React Front End Developer – brasil

106 Perguntas de entrevista compartilhadas pelos candidatos | react front end developer

Write a function changeKey(obj, oldKey, newKey) that recursively replaces all occurrences of oldKey with newKey in an object or array. Do not change the key if it is "id". let obj = { id: 7373, data: [ { type: "1", id: 73 }, { name: "xyz", type: "23", vas_id: 73, x_data: [{ id: 72, data: { xx_data: { id: 673, a: ["id"] } } }, "id"], }, "abc", "id", 123, { id: { data: 123, id: ["a", "b"] } }, ], };
avatar

Front End React Developer

Entrevista na empresa Fragma Data Systems

4.3
6 de nov. de 2024

Write a function changeKey(obj, oldKey, newKey) that recursively replaces all occurrences of oldKey with newKey in an object or array. Do not change the key if it is "id". let obj = { id: 7373, data: [ { type: "1", id: 73 }, { name: "xyz", type: "23", vas_id: 73, x_data: [{ id: 72, data: { xx_data: { id: 673, a: ["id"] } } }, "id"], }, "abc", "id", 123, { id: { data: 123, id: ["a", "b"] } }, ], };

1. What will be the output of the following code? let i = 1; function incrementByValue(value) { i += value; return i; } function limit(fn, maxCalls) { let calls = 0; return function (...args) { if (calls < maxCalls) { calls += 1; return fn(...args); } return undefined; }; } const callbytimes = limit(incrementByValue, 2); console.log(callbytimes(2)); console.log(callbytimes(3)); console.log(callbytimes(4)); console.log(callbytimes(10));
avatar

Front End React Developer

Entrevista na empresa Fragma Data Systems

4.3
6 de nov. de 2024

1. What will be the output of the following code? let i = 1; function incrementByValue(value) { i += value; return i; } function limit(fn, maxCalls) { let calls = 0; return function (...args) { if (calls < maxCalls) { calls += 1; return fn(...args); } return undefined; }; } const callbytimes = limit(incrementByValue, 2); console.log(callbytimes(2)); console.log(callbytimes(3)); console.log(callbytimes(4)); console.log(callbytimes(10));

Exibindo 1 a 10 perguntas de entrevista

O Glassdoor tem 106 perguntas e relatórios de entrevistas do cargo de React front end developer. Prepare-se para sua entrevista. Conquiste a vaga perfeita na empresa dos seus sonhos!