Advertisement
Guest User

Untitled

a guest
Jul 13th, 2018
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Q: Write one Javascript statement on the indicated line that will make the printed number always be between 10 and 20 *
  2.  
  3. let x = 2;
  4. let y = 8;
  5. const a = function(b) { return function(c) { return x + y + Math.abs(b) + c; } };
  6.  
  7. // Statement will go here
  8.  
  9. const fn = a(x);
  10. x = 4;
  11. console.log(fn(Math.random() * 10));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement