Set current User in Javascript

You type it in the Debug Consoel right? That work for me.

But not in this Javascript example.

There i get this error.
Unbenannt