Member Technical Team
Member Technical Team Interview Questions and Answers

Asked in Vendekin Technologies

Q. What are the differences between JavaScript's map and forEach methods?
map creates a new array with the results of calling a provided function on every element, forEach executes a provided function once for each array element.
map returns a new array with the results of the provided function, forEach does not return anything
map does not modify the original array, forEach can modify the original array
Example: const numbers = [1, 2, 3]; numbers.map(num => num * 2); // returns [2, 4, 6]; numbers.forEach(num => console.log(num)); // prints 1, 2, 3

Asked in Hexaware Technologies

Q. Write a Java program to generate the Fibonacci series.
Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
Start with two initial numbers, usually 0 and 1
Add the previous two numbers to get the next number in the sequence
Repeat this process to generate the Fibonacci series
Member Technical Team Jobs


Interview Experiences of Popular Companies




Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary


Reviews
Interviews
Salaries
Users

