ibm-india-rajtgin
Version:
This is my IBM Oct training module
30 lines (26 loc) • 599 B
JavaScript
/**
* Created by Raj on 10/24/2016.
*/
var mod = (function() {
var secret = "my secret";
var fname = "Kit";
var lname = "Walker";
var title = "Phantom";
var city = "Bhangala";
var modcity = function(newcity){
this.city = newcity;
};
return{
fullname : function () {
return fname + " " + lname
},
city : city,
title : title,
modcity : modcity
}
}());
console.log(mod.fullname());
console.log(mod.city);
console.log(mod.title);
mod.modcity("Blr");
console.log(mod.city);