SkillSeevaSkillSeeva
HomeResourcesScheduleRoadmapTeam
Back to Categories
Current Path
JavaScript
Syntax & VariablesOperatorsFunctionsObjectsEventsString MethodsArrays & MethodsDate & MathLogic (If/Switch/Loops)DOM ManipulationES6+ FeaturesScope & HoistingThe 'this' KeywordJS ModulesClassesAsync/Await & PromisesDebuggingWeb APIs (Fetch, Storage)JSON
Jump to topic:
Syntax & VariablesOperatorsFunctionsObjectsEventsString MethodsArrays & MethodsDate & MathLogic (If/Switch/Loops)DOM ManipulationES6+ FeaturesScope & HoistingThe 'this' KeywordJS ModulesClassesAsync/Await & PromisesDebuggingWeb APIs (Fetch, Storage)JSON

Logic (If/Switch/Loops)

Control flow statements.
javascript
if (hour < 18) {
  greeting = "Good day";
}

switch (new Date().getDay()) {
  case 0: day = "Sunday"; break;
  case 1: day = "Monday"; break;
}

for (let i = 0; i < 5; i++) {
  text += "The number is " + i + "<br>";
}
9 / 19