daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Apr 21st, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function go(options) {
  2. let {speed = 4,
  3. enable: {hyperdrive = false,
  4. frobnifier = true}} = options;
  5. console.log("speed=", speed,
  6. "hyperdrive:", hyperdrive,
  7. "frobnifier:", frobnifier);
  8. }
  9. go({speed: 5});
  10.    
  11. var callbacks = [];
  12. for (var i = 0; i < 10; i++) {
  13. callbacks.push(function() { console.log(i) })
  14. }
  15. callbacks[2]();
RAW Paste Data
Top