Glossary · Automation fundamentals, platforms and components
JavaScript
Also known as: JS, ECMAScript
German: JavaScript
In software engineering, JavaScript is a high-level programming language standardized as ECMAScript (ECMA-262). It runs in web browsers and, via runtimes such as Node.js, on servers and edge devices.
- Automation components
In one sentence
JavaScript is a programming language standardized as ECMAScript (ECMA-262) that runs in browsers and, via Node.js, on servers and devices.
Example
A web-based HMI uses JavaScript in the browser to display live values it receives from the controller via WebSocket.
How it applies
- Engineering: JavaScript is widely used for web HMIs, dashboards, device web servers and low-code tools such as Node-RED. It is not used for deterministic control tasks in the PLC.
- Security: Web interfaces written in JavaScript must be protected against typical web vulnerabilities, such as cross-site scripting, and depend on third-party libraries that need updates.
- Documentation: Document supported browsers and versions for web HMIs. For customizable scripting interfaces, describe the API and limits clearly.
- Maintenance: Browser updates can change the behavior of web HMIs, so updates should be tested before rollout in production.
JavaScript vs. Java
Despite the name, JavaScript and Java are different languages with different runtimes and uses. JavaScript's standard name is ECMAScript; yearly editions add features.