Skip to content
Advertisement

What is the hash tag used for in JavaScript?

I’m not talking about in the URL. I know what that does. I’m talking about how it’s used in actual code.

After trying to assign it as a variable, I realized that it’s reserved, but I don’t know what for.

Advertisement

Answer

Javascript, or more precisely ECMAscript, is an evolving language. Some symbols and keywords (such as “class”) have been reserved for future versions, even though they may not have any meaning at the moment.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement