I could not figure out the way using before ES6 or after ES6 feature to accomplish the desired task.
Expecting private data property of javascript object. Closure can hide outer function’s local variable or parameter but if we return the object then it’s property becomes exposed.