---
title: "Discussion on \"How would a Tired Dev reverse an integer in JavaScript...\" | Hashnode"
description: "Discussion on \"How would a Tired Dev reverse an integer in JavaScript...\". and why?"
url: "https://hashnode.com/posts/how-would-a-tired-dev-reverse-an-integer-in-javascript/60578bfe5f8d512169728027"
---

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

Discussion

# [How would a Tired Dev reverse an integer in JavaScript...](https://giddydev.hashnode.dev/how-would-a-tired-dev-reverse-an-integer-in-javascript?utm_source=hashnode&utm_medium=feed)

and why?

Mar 21, 2021 · 7 min read · giddydev.hashnode.dev  
Read the article

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

## Written by

[Gideon Idowu](https://hashnode.com/@giddydev)

@giddydev

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

Software Engineer

I’m passionate about technical writing, backend api services, and building tools.

## Responses 1

Markdown supported · ⌘↵ to post

[King Etiosasere](https://hashnode.com/@thatkingguy)

[Mar 21, 2021](https://hashnode.com/posts/how-would-a-tired-dev-reverse-an-integer-in-javascript/60578bfe5f8d512169728027/comment/6057a5c85f8d512169728172)

This is an awesome article! I actually never knew there was something called `Math.sign()` in JS.

[Gideon Idowu](https://hashnode.com/@giddydev)

[Mar 21, 2021](https://hashnode.com/posts/how-would-a-tired-dev-reverse-an-integer-in-javascript/60578bfe5f8d512169728027/comment/6057a5c85f8d512169728172#reply-6057ae1a63a05a21443f3614)

Me neither, until recently. Found it and I just had to share it. Glad you liked it!
