Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
webrolls authored Jul 24, 2017
1 parent 5e1d55f commit 73ff8c9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,25 @@ do exmaple


// Greet 01
<pre>
module.exports = function() {
console.log('Hello world');
};

</pre>

// Greet 02
<pre>

module.exports.greet = function() {
console.log('Hello world!');
};
</pre>


// Greet 03
<pre>

function Greetr() {
this.greeting = 'Hello world!!';
this.greet = function() {
Expand All @@ -127,8 +135,11 @@ function Greetr() {

module.exports = new Greetr();

</pre>

// Greet 04
<pre>

function Greetr() {
this.greeting = 'Hello world!!!';
this.greet = function() {
Expand All @@ -138,8 +149,11 @@ function Greetr() {

module.exports = Greetr;

</pre>

// Greet 05
<pre>

var greeting = 'Hello world!!!!';

function greet() {
Expand All @@ -150,6 +164,8 @@ module.exports = {
greet: greet
}

</pre>


app.js

Expand Down

0 comments on commit 73ff8c9

Please sign in to comment.