JavaScript was primarily designed to run in the user interface (top) tier of a web application.
To add, JavaScript, often
abbreviated as "JS", is a high-level, dynamic, untyped, interpreted
run-time language. It has been standardized in the ECMAScript language
specification.