Front End Software Interview Questions

21,107 front end software 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 771 - 780 interview questions

See Interview Questions for Similar Jobs

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