Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Comma Operator

kouqhar answered on April 18, 2023 Popularity 6/10 Helpfulness 1/10

Contents


More Related Answers

  • comma
  • Comparison Operators
  • add comma to thousands
  • comma in java variable
  • trailing comma
  • comma operator in javascript

  • Comma Operator

    0

    A comma operator takes two expressions, evaluates them from left to right, and returns the right expression's value.

    We increase the value of x by one (x++), add one to x (x + 1), and assign x to y. Therefore, x is 11, and y is 12 after the statement.

    Popularity 6/10 Helpfulness 1/10 Language javascript
    Link to this answer
    Share Copy Link
    Contributed on Apr 18 2023
    kouqhar
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.