With this page:
If you are just testing a single function in the console, you can also just put 'use strict' as the first line in the function declaration.