Junior Front End Engineer Interview Questions

21,139 junior front end engineer 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,139 interview questions and reports from Junior front end engineer interviews. Prepare for your interview. Get hired. Love your job.