Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string to variable

var myString = "number";
eval(myString +" = 9");
console.log(number);
Source by www.codespeedy.com #
 
PREVIOUS NEXT
Tagged: #javascript #string #variable
ADD COMMENT
Topic
Name
1+5 =