Available Globals
Global variables available to your app’s code
All JavaScript native globals are available
(Object
,
Array
,
Promise
,
etc.). There are no built-in Node.js modules like
fs
,
http
.
It’s possible to import npm packages as long as they don’t depend on Node.js Modules and missing
Web Globals.
Shared Globals
The following globals are available on both the server and client side.
console.log()
console.info()
console.warn()
console.error()
TextEncoder
TextDecoder
setTimeout()
clearTimeout()
setInterval()
clearInterval()
URL
URLSearchParams
Client Only
The following globals are only available on the client (web) side.
Server Only
The following globals are only available on the server side.
Was this page helpful?