Guest User

Untitled

a guest
Sep 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Why are functions not available in global object?
  2. var a = 1;
  3. function b(){return 1;}
  4. for(var k in global) console.log(k);
  5.  
  6. ArrayBuffer
  7. Int8Array
  8. Uint8Array
  9. Int16Array
  10. Uint16Array
  11. Int32Array
  12. Uint32Array
  13. Float32Array
  14. Float64Array
  15. DataView
  16. global
  17. process
  18. GLOBAL
  19. root
  20. Buffer
  21. setTimeout
  22. setInterval
  23. clearTimeout
  24. clearInterval
  25. console
  26. module
  27. require
  28. a
  29. _
  30. b
  31. k
  32.  
  33. ArrayBuffer
  34. Int8Array
  35. Uint8Array
  36. Int16Array
  37. Uint16Array
  38. Int32Array
  39. Uint32Array
  40. Float32Array
  41. Float64Array
  42. DataView
  43. global
  44. process
  45. GLOBAL
  46. root
  47. Buffer
  48. setTimeout
  49. setInterval
  50. clearTimeout
  51. clearInterval
  52. console
  53.  
  54. function (module, exports, global) {
  55. // your module code
  56. }
Add Comment
Please, Sign In to add comment