---
title: "Discussion on \"When to use i++ vs ++i vs i+=1\" | Hashnode"
description: "Discussion on \"When to use i++ vs ++i vs i+=1\". Along with “Hello World” it seems like one of the early things people stumble upon is prefix (++i), postfix (i++), and += (additional assignment) operator notation. These operators can be great tools but unfortunately they can also be a gun to shoot ..."
url: "https://hashnode.com/posts/when-to-use-i-vs-i-vs-i1/5fef7077786e5b71c88adf6a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [When to use i++ vs ++i vs i+=1](https://blog.imnick.dev/when-to-use-i-vs-i-vs-i1?utm_source=hashnode&utm_medium=feed)

Along with “Hello World” it seems like one of the early things people stumble upon is prefix (++i), postfix (i++), and += (additional assignment) operator notation. These operators can be great tools but unfortunately they can also be a gun to shoot ...

Jan 1, 2021 · 4 min read · blog.imnick.dev  
Updated Jan 5, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#learning](https://hashnode.com/tag/learning)

## Written by

[Nicholas Lewanowicz](https://hashnode.com/@imnickdev)

@imnickdev

  
[View profile](https://hashnode.com/@imnickdev)

Software engineer @ Shopify

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
