Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="This Keyword 5 explicit binding using call() apply() method" />
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
function myFunction() {
  
  Array.prototype.push.call(arguments, "four");
  //Array.prototype.push.apply(arguments, ["four"]);
  
  console.log(arguments[3]);    // "four"
}
 
myFunction("one", "two", "three"); 
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
deepaksisodiyapro
0viewers