Preventing Data From Mutation with Freeze Method (javascript mutation)
|

Preventing Data From Mutation with Freeze Method (javascript mutation)

In JavaScript, we declare variables with CONST when we want to protect it from mutation. But CONST declaration alone is not enough to protect really. Firstly let’s see data protection with CONST: As you see there is an alternative way to mutate CONST data. So what about if you really wat your data to be…

How to Hide API Keys of Your JavaScript Projects?

How to Hide API Keys of Your JavaScript Projects?

While developing SPA project, we sometimes need to use API keys. Although it is possible to hide these API keys with .ENV file importing method, you must find another method on production process because of the fact that: .env files’ content are visible to client when they investigate your .js files. .env importing is used for when…