daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest May 23rd, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function a() {
  2.     return "b";
  3. }());
  4.    
  5. function a() {
  6.    return b;
  7. }();
  8.    
  9. Uncaught SyntaxError: Unexpected token )
  10.    
  11. var c = function a() {
  12.    return b;
  13. }();
  14. console.log(c); // prints b
  15.    
  16. function a() {
  17.     return "b";
  18. }()
  19.    
  20. function a() {
  21.     return "b";
  22. }
  23.  
  24. () // not allowed - empty expression
  25.    
  26. () // meaningless
  27. 2 + 3 * 4 // 5
  28. (2 + 3) * 4 // 20
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top