Since *you* have seen a script using the operator, *you* are to provide the
example.
I found it back. It is only a colon.
<script language="JavaScript">
<!--
V1={
x:function(){
var A=prompt('First name...','');
var B=prompt('Last name...','');
alert(A + ' ' + B)}
};
V1.x()
//-->
</script>
{ x:5 }
defines a new object with a property named x, and the value of the
property is 5. Note : only works in recent browsers.
v = { x:5 };
changes the value of v to being an object with a property x, and the
value of the property is 5.
function() { ... }
defines a function object that doesn't have a personal name.
Therefore
v = { x:function() { ... } };
changes the value of v to being an object with a property, alias method,
named x, and the value of that property is a function object that can be
called by doing
v.x();