---
title: "Discussion on \"Difference between x++ and ++x | SrishCodes\" | Hashnode"
description: "Discussion on \"Difference between x++ and ++x | SrishCodes\". Hi everyone, welcome back to SrishCodes where I teach you interesting tech concepts that you should know about as a current or aspiring software developer. Today I will be sharing with you about the difference between prefix (++x) and postfix (x++). ..."
url: "https://hashnode.com/posts/difference-between-x-and-x-or-srishcodes/608e2456dc886b4318005f1e"
---

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

Discussion

# [Difference between x++ and ++x | SrishCodes](https://srishcodes.hashnode.dev/difference-between-x-and-x-or-srishcodes?utm_source=hashnode&utm_medium=feed)

Hi everyone, welcome back to SrishCodes where I teach you interesting tech concepts that you should know about as a current or aspiring software developer. Today I will be sharing with you about the difference between prefix (++x) and postfix (x++). ...

May 2, 2021 · 2 min read · srishcodes.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#basics](https://hashnode.com/tag/basics)

## Written by

[Srish Codes](https://hashnode.com/@srishcodes)

@srishcodes

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

New article every Sunday!

Software engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Subhodip Mandal (Dipster)](https://hashnode.com/@Dipster)

[May 6, 2021](https://hashnode.com/posts/difference-between-x-and-x-or-srishcodes/608e2456dc886b4318005f1e/comment/60941e54d1bbc47b91a670e9)

Pretty short but I had a fun 1 minute reading it. Maybe you could cover a bit more on the software engineering practices aspect of this, in terms of what scenarios to avoid using postfix or prefix and what habits often cause the most debugging errors without us coders realising.
