what does the following code meaning? (it is not json - it is code which does not generate error by js interpreter)
foo: 5
The reason for the question is as follows. In the arrow function examples there is one that shows the confusion between json and code block syntax:
var func = () => { foo: 1 };
The func() returns undefined and the above code does not fail. I tried to put just the foo: 5 code as the only code in a js module - and it works... I do not know about a ':' operator neither about labels in js.