what is colon stands in javascript code example
Example 1: colon in js
List:
while(counter < 50)
{
userInput += userInput;
counter++;
if(userInput > 10000)
{
break List;
}
}
Example 2: colon in js
document.getElementById("demo").innerHTML = age>18? "True" : "False";