How a function returns an Object Javascript

 We saw how a function work step by step: Function Data Flow

Now we will learn how a function return an object in JavaScript

πŸ‘‰Let first define a function without parameter and create an object inside function body
     and call it



πŸ‘‰ Now we will call a function with parameter



πŸ‘‰Now store the returned value in - functionName() that include arguments("Pritam",30) for

     further use & print it in console by console.log





Note: rules should be added on 22 march 

like parameters are variable and steps of function data flow and with object how its react








Comments

Popular posts from this blog

How function return an Array in JavaScript