Microbot first commit

This commit is contained in:
2018-07-15 02:04:22 +05:30
parent ccc644e00a
commit d6934656d2
8 changed files with 133 additions and 0 deletions

9
src/js/greeter.js Normal file
View File

@@ -0,0 +1,9 @@
class Greeter {
constructor(name) {
this.name = name;
}
greet() {
return 'Hello' + this.name;
}
}

5
src/js/index.js Normal file
View File

@@ -0,0 +1,5 @@
const Greeter = require("./Greeter");
const g = new Greeter('Sapient');
document.write('<h1>${g.greet()} </h1>')