Front End Developer Intern Interview Questions

21,145 front end developer intern interview questions shared by candidates

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 2501 - 2510 interview questions

See Interview Questions for Similar Jobs

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