Front End Developer Interview Questions

12,575 front end developer interview questions shared by candidates

Write a function which takes an array and number and if the number given is greater than array length then return element before last element. for example take(['a', 'b', 'c', 'd'], 10) should return [a, b, c, d, c, b, a, b, c, d]
avatar

Front End Developer

Interviewed at OVO

2.7
Feb 13, 2020

Write a function which takes an array and number and if the number given is greater than array length then return element before last element. for example take(['a', 'b', 'c', 'd'], 10) should return [a, b, c, d, c, b, a, b, c, d]

Viewing 421 - 430 interview questions

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