Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
console.clear();
function doStuff(one, two, options) {
  options = options || {};
  
  let a = options.a,
      b = options.b,
      c = options.c,
      d = options.d;
  
  // more code here...
  
  console.log(options.a, options.b, c, d);
}
doStuff('example1', 'example2', {
  a: 'opt1',
  b: 'opt2',
  c: 'opt3',
  d: 'opt4'
});
Output 300px

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

Dismiss x
public
Bin info
ImpressiveWebspro
0viewers