Do we have protected scope in Javascript ? ( Angular interview questions)
- By Shiv Prasad Koirala in C#
- Oct 26th, 2017
- 6813
- 0
No we do not have protected scope in JavaScript we just have private and public ( lexical scopes).Protected scope means only child classes can access the variables and object. In JavaScript there is no real inheritance its more protoype based. So protected scope does not exist.
Do not forget to watch our 25 Angular Interview Questions and Answers video:-
Shiv Prasad Koirala
Visit us @ www.questpond.com or call us at 022-66752917... read more