Globally (not recommended):
window["temp"+numb]='somevalue; window.console && console.log(temp3);
In the area you create, serveride also works, where there is no window area
var myScope={}; myScope["temp"+numb]="someValue"; window.console && console.log(myScope.temp3);
source share