javascript when to use colon code example
Example 1: colon in js
List:
while(counter < 50)
{
userInput += userInput;
counter++;
if(userInput > 10000)
{
break List;
}
}
Example 2: colon in js
var Car = {model:"2015", color:"blue"}; //car object with model and color properties