Section A: Modern JavaScript Programming
Section B: Python Programming
Section C: SQL for Database
Section D: Backend Development with Django
Section E: React for Frontend Development with Redux
Section F: React Native for Multiplatform App Development
Section G: React with Django REST API

Switch

Topic
Materials

// Switch
console.log("Select an option:na. Option 1 nb. Option 2 nc. Option 3 ");

choice = prompt();

var text;

switch (choice) {
    case "a": //if(choice=="a")
        text = "Option 1 Selected!";
        break;
    case "b":
        text = "Option 2 Selected!";
        break;
    case "c":
        text = "Option 3 Selected!";
        break;
    default: // else
        text = "No option is selected!";
        break;
}

console.log(text);
×

Cart