colon in js

Solutions on MaxInterview for colon in js by the best coders in the world

showing results for - "colon in js"
Monte
14 Jan 2020
1var Car = {model:"2015", color:"blue"}; //car object with model and color properties
2
Michelle
24 Aug 2017
1document.getElementById("demo").innerHTML = age>18? "True" : "False";
2
Emir
05 Jan 2021
1List: 
2while(counter < 50)
3{
4     userInput += userInput;
5     counter++;
6     if(userInput > 10000)
7     {
8          break List;
9     }
10}
11
Martina
24 Mar 2019
1switch (new Date().getDay()) {
2    case 6:
3        text = "Today is Saturday";
4        break; 
5    case 0:
6        text = "Today is Sunday";
7        break; 
8    default: 
9        text = "Looking forward to the Weekend";
10}
11