propertyhere is not a property. This shortcut is something you can use with breakor continue. You can reformat the code that you have:
function test() {
property:
true;
alert('testing');
}
You don’t actually refer to the label, and what happens after it (true) is just a no-op operation, so nothing happens when it is executed. The function only contains a warning statement.
, . :
var test = {
property: true;
};
. , .