JavaScript Assignment

JavaScript Assignment Operators

Assignment operators assign values to JavaScript variables.




x = y
x += y
x -= y
x *= y
x /= y
x %= y
x <<= y
x >>= y
x >>>= y
x &= y
x ^= y
x |= y
x **= y

Assignment Examples

The = assignment operator assigns a value to a variable.


var x = 5;

The += assignment operator adds a value to a variable.


var x = 5;
x += 2;

The -= assignment operator subtracts a value from a variable.


var x = 5;
x -= 2;

The *= assignment operator multiplies a variable.


var x = 5;
x *= 2;

The /= assignment divides a variable.


var x = 25;
x /= 5;

Thank you for reading our blog.
If you have any type of suggestion related to the blog, please comment below by tagging us in that @GuidingSquare or you can contact us by going to Help > Contact Us.
Add your name, email, and message so that we can improve our website.
And if you liked our blog then please consider subscribing to our Youtube channel.
Our Youtube channel – Guiding Square

Our other social media links are below:

34 Replies to “JavaScript Assignment”

  1. This may be al well and good but no one is writing about the enormous issue of fake brands being offered by {stores|sites|websites|shops) like Med Leaf in New Berlin Wisconsin

  2. My brother recommended I would possibly like this website.
    He used to be entirely right. This submit truly made my day.
    You can not consider just how much time I had spent for this information! Thank you!

  3. hello!,I like your writing so a lot! percentage we be in contact extra
    about your article on AOL? I require an expert
    on this area to solve my problem. May be that
    is you! Looking ahead to look you.

  4. I loved as much as you will receive carried out right here.
    The sketch is tasteful, your authored material stylish.

    nonetheless, you command get got an impatience over that you
    wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly very often inside case you
    shield this hike.

    My web blog: Claritox Reviews

  5. Please let me know if you’re looking for a article writer
    for your site. You have some really great articles and I believe I would be a good asset.
    If you ever want to take some of the load off, I’d really like to write some content for your blog in exchange for a link back to
    mine. Please shoot me an email if interested. Thanks!

  6. Thank you a bunch for sharing this with all folks you really recognize what you’re
    talking about! Bookmarked. Please also seek advice from my website =).
    We can have a link alternate agreement among us!

    My blog post … Chillbox AC

  7. Howdy are using WordPress for your blog platform?
    I’m new to the blog world but I’m trying to get started and set up my own. Do you need any html coding knowledge to
    make your own blog? Any help would be really appreciated!

    Feel free to surf to my blog post – Chillbox AC (

  8. I think this is one of the most significant information for me.
    And i’m glad reading your article. But want to remark on few general things, The web site
    style is perfect, the articles is really great : D.

    Good job, cheers

    Here is my web-site – Lawanna

  9. It’s hard to come by knowledgeable people about
    this topic, however, you seem like you know what you’re talking about!


  10. I actually wanted to post a small remark to be able to say thanks to
    you for the nice recommendations you are writing here.

    My particularly long internet search has now been compensated with
    wonderful concept to write about with my family members.
    I ‘d point out that many of us site visitors actually are unquestionably lucky
    to live in a notable website with many brilliant people with beneficial tips.
    I feel very much lucky to have come across the web page and look forward to tons of
    more excellent times reading here. Thank you once more for all the details.

    Also visit my web site – Kodo Detox Patches

  11. Spot on with this write-up, I seriously believe this site needs a lot
    more attention. I?ll probably be back again to read through
    more, thanks for the advice!

    my web blog … Onita

  12. Wow, marvelous blog layout! How long have you ever been blogging for?
    you make blogging glance easy. The overall glance of your website is
    wonderful, let alone the content material![X-N-E-W-L-I-N-S-P-I-N-X]I
    simply could not go away your site before suggesting that I extremely loved the standard
    information an individual provide for your visitors? Is going to be again regularly to investigate cross-check new posts.

    my web-site; Breeze Max Portable AC

  13. Hey there! I realize this is somewhat off-topic but I had to ask.
    Does running a well-established blog such as yours take a massive amount work?
    I’m completely new to blogging however I do write in my journal on a
    daily basis. I’d like to start a blog so I can easily share my own experience and feelings
    online. Please let me know if you have any recommendations or tips for brand new aspiring bloggers.

    My blog: USlim X Keto (

  14. Thanks on your marvelous posting! I really enjoyed reading it, you happen to
    be a great author.I will make sure to bookmark your blog and will eventually come back later in life.
    I want to encourage you to continue your great writing, have a nice

  15. Terrific paintings! That is the kind of info that are supposed to be shared across the web.
    Shame on the search engines for not positioning this publish higher!

    Come on over and seek advice from my web site . Thanks =)

    Also visit my website ::

  16. Hey! Would you mind if I share your blog with my zynga group?
    There’s a lot of people that I think would really appreciate your content.

    Please let me know. Thank you

  17. What’s up it’s me, I am also visiting this site on a regular basis, this web page
    is genuinely good and the users are in fact sharing fastidious thoughts.

Leave a Reply to Onita Cancel reply

Your email address will not be published. Required fields are marked *