Files
success/node_modules/nodejs/1/singleobject.js
Shuvam Khamrui df0e0f9481 initial commit
2025-06-11 21:00:46 +05:30

15 lines
174 B
JavaScript

function Hello(){
var name;
this.setName=function(tyname){
name = tyname;
}
this.sayHello = function(){
console.log("Hello"+name);
}
}
module.exports = Hello;