Reserved Words for JavaScript Function Argument Names
Do not use any of the following words for JavaScript Function argument names.
This section applies to Function content items. See Functions.
-
AbortController
-
Blob
-
Buffer
-
ByteLengthQueuingStrategy
-
__dirname
-
__filename
-
atob
-
BroadcastChannel
-
btoa
-
clearImmediate
-
clearInterval
-
clearTimeout
-
CompressionStream
-
console
-
CountQueuingStrategy
-
Crypto
-
crypto
-
CryptoKey
-
CustomEvent
-
DecompressionStream
-
Event
-
EventTarget
-
exports
-
fetch
-
FormData
-
global
-
Headers
-
MessageChannel
-
MessageEvent
-
MessagePort
-
module
-
PerformanceEntry
-
PerformanceMark
-
PerformanceMeasure
-
PerformanceObserver
-
PerformanceObserverEntryList
-
PerformanceResourceTiming
-
performance
-
process
-
queueMicrotask
-
ReadableByteStreamController
-
ReadableStream
-
ReadableStreamBYOBReader
-
ReadableStreamBYOBRequest
-
ReadableStreamDefaultController
-
ReadableStreamDefaultReader
-
require
-
Response
-
Request
-
setImmediate
-
setInterval
-
setTimeout
-
structuredClone
-
SubtleCrypto
-
DOMException
-
TextDecoder
-
TextDecoderStream
-
TextEncoder
-
TextEncoderStream
-
TransformStream
-
TransformStreamDefaultController
-
URL
-
URLSearchParams
-
WebAssembly
-
WritableStream
-
WritableStreamDefaultController
-
WritableStreamDefaultWriter
-
this
-
break
-
case
-
catch
-
continue
-
debugger
-
default
-
delete
-
do
-
else
-
finally
-
for
-
function
-
if
-
in
-
instanceof
-
new
-
return
-
switch
-
this
-
throw
-
try
-
typeof
-
var
-
void
-
while
-
class
-
const
-
enum
-
export
-
extends
-
import
-
super
-
implements
-
interface
-
let
-
package
-
private
-
protected
-
public
-
static
-
yield
-
null