Logo Mina san coding
Logo Inverted Logo
  • Posts
  • Tech
    • Obsidian sync
  • Computer Science
    • Introduction
    • Algorithms
      • Recursion
    • Basic
      • Call Stack
      • Function Call
    • Data Structure
      • Stack
Hero Image
Call Stack

Call stack is a stack data structure that stores information about active subroutines1 of computer program. Subroutines is a sequence of program instructions that performs a specific task, packaged as a unit. ↩︎

June 13, 2020 Read
Hero Image
Function Call

Example of function call Here’s an example of function call written in Javascript. function greet(name){ console.log(`Hello ${name}!`); greet2(name); console.log('Getting ready to say bye...'); bye(); } function greet2(name){ console.log(`How are you, ${name}?`); } function bye(){ console.log('OK bye!'); } greet('Mina'); Steps explanation Memory to store the name Maggie and greetfunction console.log(Hello Mina!); Allocate the second memory box upon the first with: function greet2 Name: Maggie console.log(How are you, Mina?

June 13, 2020 Read
Navigation
  • About
  • Skills
  • Experiences
  • Education
  • Projects
  • Recent Posts
  • Accomplishments
Contact me:
  • Email: mp922352612@gmail.com

Toha Theme Logo Toha
© 2021 Copyright.
Powered by Hugo Logo