I'm wondering about something in a project of mine with OpalRB (the Ruby-to-JavaScript compiler): when you make a constant in Opal, like so:
ONE = 1
... is that essentially the same thing as saying this is JavaScript?:
const ONE = 1;
The reason that I ask this question is that the const
keyword in JS in not always properly supported in each browser and, due to that, I'm somewhat wary about using constants with Opal.