I’ve found a bug that needs fixing. If you create a TextArea (I used a BS4 TextArea) and populate it with:
Textarea1.value=vbCRLF+Time
you get the actual javascript code for the Time function rather than the time itself. It works fine if you omit the vbCRLF, so that’s what’s causing the problem.