DEV Community

Cover image for Day-69 Training At Ryaz
mahin651
mahin651

Posted on

Day-69 Training At Ryaz

Date:19/04/2022
Day:Tuesday

Today, I started at about 10:40 am as I was in progress in compleating the java script course as I was done with upto ninth module and today I started with the rest of part so, firstly I started with the a closer look with functions it included the firstly the default parameter function as we pass the default parameters as we have to declare the function and pass the argument while declaring the function and after this I started with as how we can pass the arguments and it passes as a value or it pass as a reference.In Pass by value, function is called by directly passing the value of the variable as an argument. So any changes made inside the function does not affect the original value and In Pass by Reference, Function is called by directly passing the reference/address of the variable as an argument. So changing the value inside the function also change the original value. In JavaScript array and Object follows pass by reference property. and after this I started with first class and higher class functions. A programming language is said to have First-class functions if functions in that language are treated like other variables. So the functions can be assigned to any other variable or passed as an argument or can be returned by another function and in higher order function a function that receives another function as an argument or that returns a new function or both is called Higher-order functions. Higher-order functions are only possible because of the First-class function.and after this I started with function accepting callback function JavaScript functions are executed in the sequence they are called. Not in the sequence they are defined.A callback function is a function that is passed as an argument to another function, to be called back at a later time. A function that accepts other functions as arguments is called a higher-order function.so, this way my day ended up and got to learn many new things.

Top comments (0)