DEV Community

Discussion on: React.js Frequently Faced Problems

Collapse
 
samerbuna profile image
Samer Buna

It's just a common practice to do for strings that are supposed to be unique fixed values in a program. There is no syntax significance to this. You can use lower case values and things will still work.

In modern JS, you can use the "symbol" primitive type to provide unique values and it's a much better deal than using just strings (regardless of their case).