Functions

The Function object is associated with any function in JavaScript.

function findAverage(a,b,c) { return (a + b + c) / 3; } document.write( findAverage(4,7,9) ); Use the “new Function()” constructor if your script requires dynamically supplied executable code in the current scope of your script. var findAverage = new Function("a","b","c","return (a + b + c) / 3"); document.write( findAverage(4,7,9) );

Properties

length – returns the number of arguments expected by the function.

renewdev

I Am Developer And Want To Share My Knowledge With The World..:) ;) . I Have Another Social Networking Website (Renewchat) And For Designing Or Developing Of Website Purpose You Can Contact Me On Renew Coder .. :) ;)

Leave a Reply

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