Ans for 37 is not correct, what is .company? assuming it is typo and trying to console .college then also Object.create will create new reference and we are deleting key from new reference so output should be undefined not "abc"
Actually it should not. There is a typo in the video - it should be .college. What happens here is that with Object.create you create an instance of Student object, so you have access to all properties in prototype chain. When you do delete stud1.college you delete college key in stud1 object - since it does not exists it returns true after deletion. What happens next is you console.log(stud1.college) - now compiler cant find this property in stud1 object so it reaches it's prototype chain and finds it. That is why it is printing abc
🔥Full Stack Java Developer Program (Discount Code - YTBE15) - www.simplilearn.com/java-full-stack-developer-certification?L_DsqAZQ&Comments&RUclips
🔥Full Stack Developer - MERN Stack Program (Discount Code - YTBE15) - www.simplilearn.com/full-stack-developer-course-mern-certification-training?L_DsqAZQ&Comments&RUclips
🔥Caltech Coding Bootcamp (US Only) - www.simplilearn.com/coding-bootcamp?L_DsqAZQ&Comments&RUclips
Question 37 > There is no 'company' key in the 'student' object. So consoling an non-existing key should be undefined.
Thank you for the video
Improvement should be done:-
1) Voice
2) add pdf in the description
Thanks for watching our video and sharing your thoughts. We’ll strive to do better.
question 39. Couldn't you also move the array into a set then back into an array? I think a 4th method would involve a map
Simple explanation for Q37 is: "delete" will only work on non-inherited properties.
Ans for 37 is not correct, what is .company? assuming it is typo and trying to console .college then also Object.create will create new reference and we are deleting key from new reference so output should be undefined not "abc"
Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!
@shrey , exactly, nowadays i am in self-doubt and actually tried this and got undefined.
Actually it should not. There is a typo in the video - it should be .college. What happens here is that with Object.create you create an instance of Student object, so you have access to all properties in prototype chain. When you do delete stud1.college you delete college key in stud1 object - since it does not exists it returns true after deletion. What happens next is you console.log(stud1.college) - now compiler cant find this property in stud1 object so it reaches it's prototype chain and finds it. That is why it is printing abc
Great content! Thanks. Just wanted to know if you can list out the topics in JS which are important w.r.t. interview.
Great suggestion!
Video need mainly voice, but please improve your voice
Thank you for bringing this to our attention. We’re sorry you had a bad experience. We’ll strive to do better
Thanks and Gratitude
You're most welcome
Q34> The output is "10undefined" and not "10function" can you elaborate...?
Please try to make long videos more than 1 hr covering many questions. These are just basic
Hi Vishwas, Thanks for the feedback. We shall share your concerns with the concerned department.
Voice will not fine
Thank you for bringing this to our attention. We’re sorry you had a bad experience. We’ll strive to do better
I don’t understand one thing, if only 5% of 95 using let or const why is var keyword is being used in interview questions
Is this enough for main interview sir?
Can you sent this as a pdf
We don't have any pdf of this particular video. For slides, you can check out our slideshare profile: www.slideshare.net/Simplilearn"
@@SimplilearnOfficial Thank u😊
Lead up.
Abstract.
Sudden blow descriptive.
Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!
Take one input field print the value in console????????????........... can any one give me the answer