About 19,800,000 results
Open links in new tab
  1. Javascript If/Else Statement - CodePen

    /* First we define our myPoints variable. Then, we set the value of our message variable to a different message based on the value of the myPoints variable. Try changing the value of …

  2. javascript - Simple if else onclick then do? - Stack Overflow

    Jan 1, 2015 · var box = document.getElementById("box"); var yes = document.getElementById("yes"); var no = document.getElementById("no"); if (yes.clicked == …

  3. If statements in JavaScript using Codepen - YouTube

    Super basic intro to if-statements in JavaScript with Codepen.

  4. If Statements in JavaScript - Week 12 - Happy Coding

    To review the syntax for if statements: to create an if statement, first start with the if keyword, followed by a boolean expression inside of parentheses, followed by { } curly braces. Inside …

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

    In JavaScript we have the following conditional statements: Use if to specify a block of code to be executed, if a specified condition is true; Use else to specify a block of code to be executed, if …

  6. How to Use If Statements in JavaScript – a Beginner's Guide

    Nov 20, 2023 · if statements allow developers to control the flow of their programs by making decisions based on certain conditions. In this article, we will explore the basics of if statements …

  7. JavaScript if...else Statement

    The if statement executes a block if a condition is true. When the condition is false, it does nothing. But if you want to execute a statement if the condition is false, you can use an if...else …

  8. Conditional branching: if, - The Modern JavaScript Tutorial

    Dec 7, 2022 · The if(...) statement evaluates a condition in parentheses and, if the result is true, executes a block of code. For example: let year = prompt('In which year was ECMAScript …

  9. JavaScript - if/else Statements - Check Conditions - CodePen

    You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can …

  10. How come this if statement doesn't work (codepen included)

    Sep 21, 2022 · I tried to do this just to see if it would work and the arrayIndex matches up and hits 3 but nothing happens. ArrayIndex++. renderCards() console.log(ArrayIndex) ArrayIndex-- …

  11. Some results have been removed