#1 HackerRank JavaScript Certification | JavaScript Interview Questions 2020

preview_player
Показать описание
Hello everyone. Welcome to JavaScript Interview Question Series.
In this series I will be uploading JS interview questions asked in CISCO and the questions that are asked to clear HackerRank certification exam.
So guys watch the video till the end and if you like the video then do subscribe to my channel. Thank You !

#JavaScriptInterviewQuestions #JavaScriptInterviewQuestionsforexperienced #JSInterviewQuestionsandAnswers #JavaScriptInterviewQuestions2020 #HackerRank #HackerRankInterviewQuestions #devChannel
Рекомендации по теме
Комментарии
Автор

Don't forget to subscribe #devChannel 🙌
Thank you for watching and have a great day 😇
-AI

akashingole
Автор

Thanks for sharing. Just as a comment, it's better engineering to create pure functions, e.g. do not modify the actual input object, but return a new object, since it's a side effect and potentially could cause problems.
However since the task says to strip the prop AND return the final object, the solution is correct.

ssokurenko
Автор

there is no need to use for loop. just check if prop in object and delete it

faridmammadov
Автор

Wouldnt this logic delete the inherited properties as well? Is that what the question expects? If not, we should be using the `hasOwnProperty` instead of a `for in` loop to check for the prop and delete it?

tommysingh
visit shbcf.ru