I am building JavaScript application and decided to use const
instead of var
in my constant definitions something like this:
const MAX_FILE_SIZE = 50;
const MIN_FILE_SIZE = 5;
const MAX_FILE_COUNT = 10;
...
That makes code more readable to me and I like this, but for some reason, my application failed to work on safari.
What browsers support the const
?
According to the information pages at Can I use and Mozilla Developer Network, the JavaScript const
feature is supported in: