MV Which statements are valid in Notetag code?

Using the YEP notetags.

In his notetags, which go like this:
<CUSTOM NOTETAG CODE>
code
code
</CUSTOM NOTETAG CODE>

What javascript statements are valid/usable?

I already know of 'if' and 'else', but is 'for' valid? And what else?
What javascript statements are valid/usable?
the custom notetags just store/run javascript. if its valid js, then whatever you used will run

Original thread: https://forums.rpgmakerweb.com/threads/which-statements-are-valid-in-notetag-code.177449/