else in javascript

Solutions on MaxInterview for else in javascript by the best coders in the world

showing results for - "else in javascript"
Stella
26 May 2017
1if (time < 10) {
2  greeting = "Good morning";
3} else if (time < 20) {
4  greeting = "Good day";
5} else {
6  greeting = "Good evening";
7}
Rafael
23 Nov 2020
1//if(args[0] === "hi"){
2// console.log("Hello!"); 
3//}
4else {
5  //Your code here
6}
similar questions
else if