Edit This Code:
<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
var x = 10;
switch(x) {
    case 10: alert("Hello");
}
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy