- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
It adds the right operand to the left operand and assigns the result to the left operand.
You can try to run the following code to learn how to work with Addition Assignment Operator −
<html> <body> <script> var a = 33; var b = 10; document.write("Value of a => (a += b) => "); result = (a += b); document.write(result); document.write(linebreak); </script> </body> </html>
- What is an assignment operator in C#?
- What is vertical bar in Python bitwise assignment operator?
- Java Assignment Operator Examples