# platform.environment

Variable · category: Other

Source: https://github.com/playcanvas/engine/blob/b5b983982a9860d21e0c1dafb2f85f72e2c01afb/src/core/platform.js#L57

String identifying the current runtime environment. Either 'browser', 'node' or 'worker'.

```ts
const environment: "worker" | "browser" | "node" = environment
```
