Ask coding questions

← Back to all posts
best variable type for javascript
DREWthejsman (5)

What is the best type of variable for creating a js calculator?

Comments
hotnewtop
[deleted]

Probably: const = //your number
Cuz you can make it so that nothing in your code can mess with it and change it

Coder100 (17136)

You would usually use let.

There really isn't a variable type you need to worry about, as js is a dynamic language lol.