Sort an Array of Names - Job Interview Practice! - Javascript

preview_player
Показать описание
A potential job interview question could be to order an array of names by LAST name. If the last names are equal, order by the first name. I show you how to do that here.

Hope it helps!

Feel free to say hi 👋:

Thanks for watching!

-Andrew

Affiliate links to some of my gear 🤘🙏❤️
(Best quality for the best price from my research)
Рекомендации по теме
Комментарии
Автор

Hey Mate,

great videos already subscribed.

i got an assignment for job interview and this is what they require.
can u please help

Eg:

yourFunctionName( ["Foo_1", " Bar two", "rEd ", " blUE", "bar one"])





Will return:

["Bar One", "Bar Two", "Blue", "Foo_1", "Red"]


passing trhrough a func and should perform trim, Title Case and sort as per output.




i tried but only trim worked for me rest 2 didnt.

amrindertoor
visit shbcf.ru