What is LockerService?

LockerService is a powerful security architecture for Lightning components. LockerService enhances security by isolating Lightning components in their own namespace. LockerService also promotes best practices that improve the supportability of your code by only allowing access to supported APIs and eliminating access to non-published framework internals.