+ 6
Function variable inside variable
I tried this but it doesnt work it just uses var instead of the string that the variable contains. function test(var){ otherFunction(var,true); }
2 Answers
+ 3
var isnt a valid variable name and this should produce an error,var is a keyword so i dont understand your question
+ 2
This was just an example the variable name is cost