#closures-in-javascript
Read more stories on Hashnode
Articles with this tag
function Person(name, age, id) { var privateId = id; this.name = name; this.age = age; this.getPrivateId = function() { ...