Saturday 3 June 2017

Nodejs variable in name of variable

I want to define a variable called for example:

test = 1;
cookie_(content of test) = 1;

But when i change test to something like 2 it needs to make the new variable also cookie_2. How to do this?



via Noah van der Aa

No comments:

Post a Comment