Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>Funkcije</title>
- </head>
- <body>
- <h1>FUNKCIJE</h1>
- <script id="jsbin-javascript">
- /*FUNKCIJE*/
- function calc(){
- console.log("Unutar funkcije");
- }
- calc();
- /*FUNKCIJE*/
- (function calc1(){
- console.log("Unutar funkcije 1");
- })();
- /*FUNKCIJE*/
- var calc2 = function () {
- console.log("Unutar funkcije 2");
- }
- calc2();
- console.log(calc2);
- console.log(typeof calc2);
- var anatherFn = calc2;
- anatherFn();
- </script>
- <script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>Funkcije</title>
- </head>
- <body>
- <h1>FUNKCIJE</h1>
- </body>
- </html> </script>
- <script id="jsbin-source-javascript" type="text/javascript">/*FUNKCIJE*/
- function calc(){
- console.log("Unutar funkcije");
- }
- calc();
- /*FUNKCIJE*/
- (function calc1(){
- console.log("Unutar funkcije 1");
- })();
- /*FUNKCIJE*/
- var calc2 = function () {
- console.log("Unutar funkcije 2");
- }
- calc2();
- console.log(calc2);
- console.log(typeof calc2);
- var anatherFn = calc2;
- anatherFn();</script></body>
- </html>
Add Comment
Please, Sign In to add comment