I have the following so-called Revealing Module Pattern and I want to call the function a inside function b using a variable. How can I do that?
foo = function() {
a = function() {
};
b = function() {
memberName = 'a';
// Call a() using value stored in variable `memberName`.
}
return {b: b};
}();