Return dynamic value of a variable name in google tag manager

Viewed 1898

I'm new in Google tag manager and JavaScript and I have a variable in my source code called name that has a unique value for each customer. How can I write a custom java script that return the value for this variable.

For example var name = '123'?

Should it be something like that ?

function () {
ret = name.value
return (ret); 

}
2 Answers
Related