Why was “The Good Parts” designed as a language subset in JavaScript?

A To improve programmer flexibility
B To balance the workload of the programmer
C To create an in-built compiler and interpreter
D To improve programmer productivity

Correct Answer: To improve programmer productivity

The Good Parts is a language subset designed for aesthetic reasons and with a desire to improve programmer productivity. There is a larger class of subsets that have been designed for the purpose of safely running untrusted JavaScript in a secure container or “sandbox”.

Related Questions

Why does JavaScript subset disallow == and !=?
What is being imposed on each subset to ensure that it conforms to the subset?
JavaScript is designed for following purpose

Next steps