JS Basics Functions + Prblem set !!

Hey guys,

You can find the directory for the js basic functions here.


The problem set here



declaring and calling a function are to different things when you declare a function you are basically creating a set of instructions that have “no real purpose”… when you call the function using a function call you are executing the lines of code( instructions), within the function.

function doSomething(num){
     // function declaration
     // put instructions for task
     return num + num;
}

//function call
doSomething(8);
// function call exetuces set of instruction within function
// value is returned.

Leave a comment

Your email address will not be published. Required fields are marked *

css.php