Local variable vs parameter

Posted by Dhana on Stack Overflow See other posts from Stack Overflow or by Dhana
Published on 2010-06-16T22:52:01Z Indexed on 2010/06/16 23:02 UTC
Read the original article Hit count: 132

Filed under:
|
function doIt(param) {
   var localVar = param;
   //do lots of stuff with localVar
}

function doIt(param) {
   //do lots of stuff with param
}

Is there any difference in terms of efficiency between the code above?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about efficiency