Skip to content

Instantly share code, notes, and snippets.

Created June 17, 2022 14:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Example of using stack memory efficiently
* This will invoke showGreetMessage method and pass only required field
function Greet() {
const greetObject = {
message: "Hello & Welcome to Ever Blogs",
alignment: "Top",
color: "black",
const { message } = greetObject;
* This method will be invoked and it takes message variable as argument
* Instead of taking whole greet object in argument, we take only message field
function showGreetMessage(message) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment