---
title: "Comment by web graphics on \"20 Useful JavaScript Tips &Tricks For Writing Short and Clean Code\" | Hashnode"
description: "CONVERT TO NUMBER let int = +&quot;16&quot;; console.log(int); // Output: 16 console.log(typeof int);"
url: "https://hashnode.com/posts/20-useful-javascript-tips-andtricks-for-writing-short-and-clean-code/61403331f0695026068b7f1e/comment/6146dfd9e1f56817e3607a77"
---

[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)

[web graphics](https://hashnode.com/@webgraphics8)

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

CONVERT TO NUMBER

let int = +"16";

console.log(int); // Output: 16 console.log(typeof int);

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

[Sep 19, 2021](https://hashnode.com/posts/20-useful-javascript-tips-andtricks-for-writing-short-and-clean-code/61403331f0695026068b7f1e/comment/6146dfd9e1f56817e3607a77#reply-6147107f699fe76cd3482642)

I didn't realize that😂 Thanks for sharing🥰

[web graphics](https://hashnode.com/@webgraphics8)

[Sep 20, 2021](https://hashnode.com/posts/20-useful-javascript-tips-andtricks-for-writing-short-and-clean-code/61403331f0695026068b7f1e/comment/6146dfd9e1f56817e3607a77#reply-6148c67c699fe76cd3484f33)

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

Actually thanks to you because your tips and tricks really helping me here....
