JS Interview Object Properties 1 Question 21

preview_player
Показать описание
This episode looks into how JavaScript sees any and all object properties.

Рекомендации по теме
Комментарии
Автор

I love this series, I'm picking up so much useful, actionable information from these videos.

Do you have Swedish heritage or just lowkey flexing your language skills?

Thanks!

mikaknuuttila
Автор

Hi Steve,
I had a request, I see you have created a video on conditions but I wanted to know if there is a way in javascript in which we can create a mapper function which basically takes in arguements and then compare it and then return back a suitable result instead of using an if else or switch, basically what I had in mind was that the mapper function will use a hash table kind of structure which will take in a property as an arguement and then give out the predefined property value. Thank you if you will make a video on it.
We can also use it in case there are multiple roles for a user and on logging in as ever user we use different API calls we can use this to define the API endpoints for all the multiple roles and get the expected result.
Thanks
Keep making these videos, Love from India

yoking
Автор

Does anybody else literally punch the air when they answer these questions correctly?

RedEyedJedi
Автор

Methods could also be Symbols in object

maksymantoshkin