Friday 11 May 2018

Can i use global variables to store data?

I'm new at Node Js and i was wondering if is it correct to use a global variable to store some users data? i have a function that returns user information from a database so i decided to create a variable where stores users previously requested. Is that right or is a sin as a programmer?

Submitted May 11, 2018 at 11:11PM by silvaF

No comments:

Post a Comment