Ok so I want to create variables as a user clicks threw the code every click adds a new variable. I am currently using jquery and javascript I can\'t do it server side this
Most simple way
var types = {}; for(var i=1; i<=3; i++){ types["ashish"+i] = 'The value of dynamic variable, val'; }
console.log(types);
you can test it on
jsfiddle