---
title: "Comment by Razvan on \"20 Useful JavaScript Tips &Tricks For Writing Short and Clean Code\" | Hashnode"
description: "I was today years old when I found out about this 🤯: int = + int ; // string to number"
url: "https://hashnode.com/posts/20-useful-javascript-tips-andtricks-for-writing-short-and-clean-code/61403331f0695026068b7f1e/comment/6141a16ac5f31102b885e77f"
---

[Discussion](https://hashnode.com/posts/20-useful-javascript-tips-andtricks-for-writing-short-and-clean-code/61403331f0695026068b7f1e)

Comment [20 Useful JavaScript Tips &Tricks For Writing Short and Clean Code](https://hashnode.com/posts/20-useful-javascript-tips-andtricks-for-writing-short-and-clean-code/61403331f0695026068b7f1e)

[Razvan](https://hashnode.com/@rrazvan)

[Sep 15, 2021](https://hashnode.com/posts/20-useful-javascript-tips-andtricks-for-writing-short-and-clean-code/61403331f0695026068b7f1e/comment/6141a16ac5f31102b885e77f)

I was today years old when I found out about this 🤯:

```
int = +int; // string to number
```

[Ayesha Sahar](https://hashnode.com/@IAyeshaSahar)

[Sep 15, 2021](https://hashnode.com/posts/20-useful-javascript-tips-andtricks-for-writing-short-and-clean-code/61403331f0695026068b7f1e/comment/6141a16ac5f31102b885e77f#reply-6141a2ef4e51f6028be03433)

Glad that you learned something new😆
