Why is data structures and algorithms a mandatory step in Frontend interviews?
Being a front end developer, I cannot recall any project where I have used these data structures and algorithms in my day-to-day tasks. Frontend work mainly revolves around user experience, creating beautiful dynamic screens using latest js frameworks and css techniques.
It is very rare in Front End that you would have to use data structures and algorithms, they are already being used in the background by the JS.
The reason is that the Front End apps reside on Client machine. And on client machine, you can’t store much of the information; and there are no scenarios where it can only be stored in the Client side, not at server.
Having too much data at the client side will only slow it down; so no point in sending large data.
Though if you have a web app which deals with large data set like Graph Generation or Excel Like Data Editor, then it might make sense to use one or some of them.
And there’s nothing wrong with only using Arrays and Dictionaries. my web app has nothing else but these; JS Objects behave like Dictionaries and Arrays are the default things one would naturally use at front end as it is the basic most collection type.
I agree with sorting and understanding graphs due to increasing use of graphs so thats important but why is there so much emphasis on over all Data Structures and Algorithms for frontend. Why dont they focus on work you do daily and frontend heavy questions in interviews. No backend developer is ever asked about js frameworks or any frontend stuff so why do frontend engineers have to go through this. After leaving data structures and Algorithms for years as frontend developers its really hard to excel in interviews as most companies have initial round of data structures and not giving importance to your frontend/js skills. How many of you have actually used data structures and Algorithms as frontend engineers in day to day work. Especially with js frontend all you use is arrays and dictionaries so why not focus on front end aspects like ui experience, performance, testing instead of focusing on data structures for frontend