Lead Front End Developer Interview Questions

17,031 lead front end developer interview questions shared by candidates

Write a function that takes input of arrays and loops over them to calculate return values based on some criteria. For example, take this array [['oranges', 1], ['apples', 2], ['grapes', 7]]. Based on this array return total costs if second array property is a quantity and product is first array item. If say Oranges cost $5, and user buys the quantity of 2 or more, apply a 20% discount etc.. Return total cost from array by adding them all up.
avatar

Senior Front End Developer

Interviewed at Shopify

3.4
Mar 30, 2021

Write a function that takes input of arrays and loops over them to calculate return values based on some criteria. For example, take this array [['oranges', 1], ['apples', 2], ['grapes', 7]]. Based on this array return total costs if second array property is a quantity and product is first array item. If say Oranges cost $5, and user buys the quantity of 2 or more, apply a 20% discount etc.. Return total cost from array by adding them all up.

Viewing 3271 - 3280 interview questions

Glassdoor has 17,031 interview questions and reports from Lead front end developer interviews. Prepare for your interview. Get hired. Love your job.