Front End Developer Interview Questions

12,592 front end developer interview questions shared by candidates

We have this small dashboard built in React. Complete these tasks: add the user's name to the dashboard, so that it says, "Welcome, [user]!"; how would we pass properties from the parent component to child components; what are some ways we can update data in the component as the user types into the text box?
avatar

Senior Software Engineer Front End

Interviewed at Medallia

3.1
Sep 23, 2022

We have this small dashboard built in React. Complete these tasks: add the user's name to the dashboard, so that it says, "Welcome, [user]!"; how would we pass properties from the parent component to child components; what are some ways we can update data in the component as the user types into the text box?

Round 2: In-person White boarding: 1. Write the code to achieve the following: let myStr = "hello world!"; // your code here console.log(myStr); // !dlrow olleh 2. What is the output? Why? console.log(“one”); SetTimeout(function(){ console.log(“two”); }, 0); console.log(“three”); 3. For a given number ("n"), write a function that loops from 1 to "n" and outputs "Fizz" if the number is divisible by 3, "Buzz" if it is divisible by 5, "FizzBuzz" if it is divisible by both 3 & 5, and the number itself otherwise 4. What is the output? How to fix it? console.log(“start”); for(var i=0;i<5;i++){ setTimeout[function(){ console.log(i); },0); } console.log(“end”); 5. For a given array ([8, 7, 5, 3, 3, 0, 9, 1]), do the following: (must use ES6 Array methods) i) Sort in ascending order ii) Remove duplicates iii) Find numbers greater than a particular number (for ex: greater than 3)
avatar

Senior Front End Developer

Interviewed at Bank of America

3.9
Mar 25, 2017

Round 2: In-person White boarding: 1. Write the code to achieve the following: let myStr = "hello world!"; // your code here console.log(myStr); // !dlrow olleh 2. What is the output? Why? console.log(“one”); SetTimeout(function(){ console.log(“two”); }, 0); console.log(“three”); 3. For a given number ("n"), write a function that loops from 1 to "n" and outputs "Fizz" if the number is divisible by 3, "Buzz" if it is divisible by 5, "FizzBuzz" if it is divisible by both 3 & 5, and the number itself otherwise 4. What is the output? How to fix it? console.log(“start”); for(var i=0;i<5;i++){ setTimeout[function(){ console.log(i); },0); } console.log(“end”); 5. For a given array ([8, 7, 5, 3, 3, 0, 9, 1]), do the following: (must use ES6 Array methods) i) Sort in ascending order ii) Remove duplicates iii) Find numbers greater than a particular number (for ex: greater than 3)

Viewing 1271 - 1280 interview questions

Glassdoor has 12,592 interview questions and reports from Front end developer interviews. Prepare for your interview. Get hired. Love your job.