I want to know that when colons ":" are used in javascript? Please if possible, try to explain it through examples.
Colons are used in a number of places within JavaScript - in object literals (JSON notation), with the javascript pseudoprotocol to invoke a function when a link is clicked, and in switch-case statements. Which particular usage are you concerned about? ~drknght