JavaScript

Reflect API in JavaScript

JavaScriptReflectReflect basicsadvanced

What this snippet does

Reflect provides functional equivalents to operators like in, delete, and property access — used with Proxy to forward operations cleanly.

Expected output

true
[ 'a', 'b' ]
{ a: 1, b: 2, c: 3 }
{ b: 2, c: 3 }
{ value: 2, writable: true, enumerable: true, configurable: true }

Why practise typing this

Typing reflect code builds muscle memory for the symbols and indentation JavaScript uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.

More JavaScript practice

Browse all JavaScript snippets →