O&D

Cards (34)

  • Types of JS Operators
    • Arithmetic Operator
    • Assignment Operator
    • Comparison Operator
    • String Operator
    • Logical Operator
    • Bitwise Operator
    • Ternary Operator
    • Type Operator
  • Arithmetic Operators

    Used to perform arithmetic on numbers
  • Operator Precedence

    Describes the order in which operations are performed in an arithmetic expression
  • Operator Precedence

    • Parentheses
    • Multiplication
    • Division
    • Addition
    • Subtraction
  • Assignment Operators
    Assign values to JavaScript variables
  • Comparison Operators

    Used in logical statements to determine equality or difference between variables or values
  • Data Types

    Different types of data
  • Value
    A piece of information that can be a Number, String, Boolean, Null
  • Data Types

    • String
    • Numbers
    • Boolean
    • null
    • undefined
    • Objects
  • String
    A series of characters enclosed in quotation marks
  • Numbers
    Any numeric value, can be positive or negative
  • Boolean
    A logical true or false, used to evaluate whether a condition is true or false
  • Null
    A special keyword denoting a null value (i.e. 0 (zero) or nothing)
  • Undefined
    A variable without a value, has the value undefined. The type is also undefined.
  • Object
    Everything in JavaScript acts like an object aside from null and undefined
  • Array
    A special variable, which can hold more than one value
  • Date
    Date objects are created with the new Date() constructor. It is used to access the browser's current date and time.
  • Create a JavaScript program to display the current time using a button
    Explore!
  • +
    Addition
  • -
    Subtraction
  • *
    Multiplication
  • **
    Exponentiation
  • /
    Division
  • %
    Modulus
  • ++
    Increment
  • --
    Decrement
  • ==
    equal to
  • ===
    equal value and equal type
  • !=
    not equal
  • !==
    not equal value or not equal type
  • >
    greater than
  • <
    less than
  • >=
    greater than or equal to
  • <=
    less than or equal too