Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
It is still possible to get
Function
constructor:Why it works: At the time of writing, the code forbidding the Function constructor looks like this:
And the
Function
is a variable reference which can be shadowed by local function declarations. (This works because in JavaScript, function declarations are executed before normal statements. Using a variable here will error on accessingundefined.prototype
.)Thus, putting that statement on the top of your solution will leave the real
Function
constructor untouched.To forbid these hacks, a method of obtaining the
Function
constructor without using any variables is required, such as(function () {}).constructor
.