DEV Community

How To Use Variable Keywords In JavaScript Properly

Mansoor Ahmad on October 11, 2019

JavaScript can do lots of things; make desktop apps, run web servers, build world-class enterprise applications, make freakin' full-fledged games, ...
Collapse
 
jochemstoel profile image
Jochem Stoel

It says on your profile that you are a learning web developer. I really like that you understand scopes but this is generally not a place where passwords are stored, especially not super important government ones. ;)

Collapse
 
manahmad profile image
Mansoor Ahmad

Oh, I completely understand! I was just using a pretty simple and impractical example to demonstrate the concept of scopes. I do not condone enclosing top-secret API keys, passwords, and other sorts of confidential information within the scope of an exposed program ;)

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

One day, maybe not today, maybe not tomorrow, this will become a normal thing as we move away from backends, or rather we smash the notion of servers. Clients will rule. That is my strange prediction.

Thread Thread
 
manahmad profile image
Mansoor Ahmad

That would be so weird but awesome at the same time. Write a blog post when it happens!

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

this is the sign that begs to differ This is the sign that begs to differ.

Collapse
 
manahmad profile image
Mansoor Ahmad

Well? Where's Godzilla?!