Guest User

Untitled

a guest
Feb 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>Funkcije</title>
  7. </head>
  8. <body>
  9. <h1>FUNKCIJE</h1>
  10. <script id="jsbin-javascript">
  11. /*FUNKCIJE*/
  12. function calc(){
  13. console.log("Unutar funkcije");
  14. }
  15. calc();
  16. /*FUNKCIJE*/
  17. (function calc1(){
  18. console.log("Unutar funkcije 1");
  19. })();
  20. /*FUNKCIJE*/
  21. var calc2 = function () {
  22. console.log("Unutar funkcije 2");
  23. }
  24. calc2();
  25. console.log(calc2);
  26. console.log(typeof calc2);
  27. var anatherFn = calc2;
  28. anatherFn();
  29. </script>
  30.  
  31. <script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
  32. <html>
  33. <head>
  34. <meta charset="utf-8">
  35. <meta name="viewport" content="width=device-width">
  36. <title>Funkcije</title>
  37. </head>
  38. <body>
  39. <h1>FUNKCIJE</h1>
  40. </body>
  41. </html> </script>
  42.  
  43.  
  44. <script id="jsbin-source-javascript" type="text/javascript">/*FUNKCIJE*/
  45. function calc(){
  46. console.log("Unutar funkcije");
  47. }
  48. calc();
  49. /*FUNKCIJE*/
  50. (function calc1(){
  51. console.log("Unutar funkcije 1");
  52. })();
  53. /*FUNKCIJE*/
  54. var calc2 = function () {
  55. console.log("Unutar funkcije 2");
  56. }
  57. calc2();
  58. console.log(calc2);
  59. console.log(typeof calc2);
  60. var anatherFn = calc2;
  61. anatherFn();</script></body>
  62. </html>
Add Comment
Please, Sign In to add comment