Answers for "colon in js"

0

colon in js

switch (new Date().getDay()) {
    case 6:
        text = "Today is Saturday";
        break; 
    case 0:
        text = "Today is Sunday";
        break; 
    default: 
        text = "Looking forward to the Weekend";
}
Posted by: Guest on December-27-2020
0

colon in js

var Car = {model:"2015", color:"blue"}; //car object with model and color properties
Posted by: Guest on December-27-2020
0

colon in js

document.getElementById("demo").innerHTML = age>18? "True" : "False";
Posted by: Guest on December-27-2020
0

colon in js

List: 
while(counter < 50)
{
     userInput += userInput;
     counter++;
     if(userInput > 10000)
     {
          break List;
     }
}
Posted by: Guest on December-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language