1. Back To Blog

Do we have protected scope in Javascript ? ( Angular interview questions)

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

We are on Social