About 200 results
Open links in new tab
  1. JavaScript Switch Statement - W3Schools

    The JavaScript Switch Statement Use the switch statement to select one of many code blocks to be executed. Syntax

  2. JavaScript switch Statement - W3Schools

    The switch statement executes a block of code depending on different cases. The switch statement is a part of JavaScript's "Conditional" Statements, which are used to perform …

  3. JavaScript Arithmetic - W3Schools

    As in traditional school mathematics, the multiplication is done first. Multiplication (*) and division (/) have higher precedence than addition (+) and subtraction (-). And (as in school …

  4. JavaScript if, else, and else if - W3Schools

    You can use conditional statements in your code to do this. In JavaScript we have the following conditional statements: Use if to specify a block of code to be executed, if a specified condition …

  5. JavaScript Comparison and Logical Operators - W3Schools

    Comparing Different Types Comparing data of different types may give unexpected results. When comparing a string with a number, JavaScript will convert the string to a number when doing …

  6. How To Create a Toggle Switch - W3Schools

    /* The switch - the box around the slider */ .switch { position: relative; display: inline-block; width: 60px; height: 34px; } /* Hide default HTML checkbox */ .switch input { opacity: 0; width: 0; …

  7. JavaScript "use strict" - W3Schools

    The purpose of "use strict" is to indicate that the code should be executed in "strict mode". With strict mode, you can not, for example, use undeclared variables.

  8. JavaScript Break and Continue - W3Schools

    The break statement, without a label reference, can only be used to jump out of a loop or a switch. With a label reference, the break statement can be used to jump out of any code block:

  9. ontoggle Event - W3Schools

    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

  10. How To Create Tabs - W3Schools

    Show a tab by default To open a specific tab on page load, use JavaScript to "click" on the specified tab button: