- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is increment (++) operator in JavaScript?
The increment operator increases an integer value by one. Here’s an example where the value of a is incremented twice using the increment operator twice
Example
<html> <body> <script> var a = 33; a = ++a; document.write("++a = "); result = ++a; document.write(result); </script> </body> </html>
Advertisements