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 Learn Angular in 8 hour step by step video series :-

Shiv Prasad Koirala

Visit us @ www.questpond.com or call us at 022-66752917... read more

We are on Social