Restrict Object Mutation in JavaScript | JavaScript Interview Question - 48

preview_player
Показать описание
JavaScript Interview Question - 48 | In this video, we will see how to solve a medium-difficulty problem asked in frontend engineer interview to SDE1, SDE2, and SDE3.

Objects are the most flexible thing that makes JavaScript versatile and easy to use, but the boon can also become a curse as Objects are passed as a reference and can be mutated from the destination. It is a common question to restrict object mutation as it helps to fix many bugs.

Loved the question? I have 120+ such solved problems in my ebook "JavaScript Interview Guide". If you are preparing for Interviews and looking for a solutions book, Get my Ebook.

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

Thank you so much for this video. Got to know two different methods seal and freeze today :)

meghanask
Автор

Hi Prashant, learned something new Object. seal and Object. freeze I was thinking of using a Proxy. Which will be tricky to implement on nested objects.

akash-kumar
Автор

Please create a playlist on testing. How to write tests for components and functions. It would be helpful for us.

sachinsingh-jbtd
Автор

Thanks for your video. Overall this was good. But in this video, intro can be improved

ravikumarranjan
visit shbcf.ru