In many languages, to invoke some function directly on new instance I need to wrap it into braces:
new Date().toString() and
Date().toString() give the same results as well.
Is it allowed to use function call immediately after instantiating new object in this way?
It looks like
new keyword is optional sometimes. How is this interpreted by JS engine?