---
title: "Discussion on \"Prefix vs Postfix operators. What's the difference?\" | Hashnode"
description: "Discussion on \"Prefix vs Postfix operators. What's the difference?\". If you're like me, you've probably had this question for a while and seen answers along the lines of, \"Prefix returns the new value while postfix returns the old one\". But then that leaves you even more confused when you try to apply it in your code...."
url: "https://hashnode.com/posts/prefix-vs-postfix-operators-whats-the-difference/632dee0f3a049a0d9db74310"
---

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

Discussion

# [Prefix vs Postfix operators. What's the difference?](https://linasblog.hashnode.dev/prefix-vs-postfix-operators-whats-the-difference?utm_source=hashnode&utm_medium=feed)

If you're like me, you've probably had this question for a while and seen answers along the lines of, "Prefix returns the new value while postfix returns the old one". But then that leaves you even more confused when you try to apply it in your code....

Sep 23, 2022 · 2 min read · linasblog.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#operators](https://hashnode.com/tag/operators)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#increment-and-decrement-operator](https://hashnode.com/tag/increment-and-decrement-operator)

## Written by

[Paulina Inedu](https://hashnode.com/@paulinalina)

@paulinalina

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
