Member Technical Team
Member Technical Team Interview Questions and Answers
Q1. Javascript map and forEach difference
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
Q2. Fibonacci series on java
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/Month