Created
August 8, 2021 04:23
-
-
Save iamshouvikmitra/831adea8aefd9fb0867e18ee05da92e6 to your computer and use it in GitHub Desktop.
Function Invocation Pattern in Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function blog(title, body) { | |
this.title = title; | |
this.body = body; | |
return "function invcation pattern"; | |
} | |
var output = blog("My New Blog", "Lorem Ipsum ... "); | |
console.log("output: ", output); // "function invcation pattern" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment