colon in javascript code example
Example 1: colon in js
var Car = {model:"2015", color:"blue"}; //car object with model and color properties
Example 2: colon in js
document.getElementById("demo").innerHTML = age>18? "True" : "False";
var Car = {model:"2015", color:"blue"}; //car object with model and color properties
document.getElementById("demo").innerHTML = age>18? "True" : "False";