I want to change value of global variable within a function with parameters name,value. All examples that ive read was with no parameter function. Example
var one = 100;
var change = function(name,value){
// name is the name of the global variable
//value is the new value
};
change(one,300);