DEV Community

Cover image for Front End Interview Question

Front End Interview Question

Luc van Kerkvoort on July 14, 2022

We as programmers lead a hard life. Especially when it comes to the interview process. There are many obstacles we have to face to get a new job, w...
Collapse
 
dev_waliba profile image
Sylvester Olawale

Hope you got the job man ?.. This is impressive !

Collapse
 
ankitg32 profile image
Ankit Gupta

Since there were no contracts on the implementation, I wonder why did u choose a framework in the first place.

Do you think it would have made sense to have a vanilla js implementation for this, given this isn't a big (subjective) component?

Collapse
 
lucvankerkvoort profile image
Luc van Kerkvoort

I agree, for many reasons a Vanilla js implementation would have been a lot better.

The interviewer did ask me to do a React implementation since it was a React position I was interviewing for.

It did give him the opportunity to ask more questions on setting up a React project which showcased my knowledge of CRA.

Strictly from an implementation though I would say Vanilla JS would have been the better solution her3

Collapse
 
ankitg32 profile image
Ankit Gupta

gotcha. Makes sense.

Collapse
 
herishiro profile image
tama

Thank you for sharing!
I’m really impressed to learn how the compose function works!
but I have a question about it.
Why did you choice compose but not pipe?
For me, pipe looks to work more natural way, as it executes its arguments from head.

Collapse
 
lucvankerkvoort profile image
Luc van Kerkvoort

Agreed. It does seem more natural. I guess it just comes down to personal preference. I have been working with compose for years so my mind just goes there automatically

Collapse
 
samx23 profile image
Sami Kalammallah

Thank you for sharing, reading this makes me realize that I need to learn more about Javascript.

Collapse
 
yayokb profile image
Kate

Was this for a senior or mid level position?

Collapse
 
lucvankerkvoort profile image
Luc van Kerkvoort

For a senior position

Collapse
 
waynium profile image
Waynium

This is so good, this is truly eye opening. Thanks for sharing 👍

Collapse
 
manthanank profile image
Manthan Ankolekar

Thanks for sharing, much needed while preparing for interview.✌️