Last active
November 29, 2019 18:21
-
-
Save chococrunch2021/0b99d1fa9c30abe52738f4da3c98f29b to your computer and use it in GitHub Desktop.
Revisions
-
chococrunch2021 renamed this gist
Nov 29, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
chococrunch2021 created this gist
Nov 29, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,59 @@ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>JS Bin</title> </head> <body> <script id="jsbin-javascript"> //이름 있는 함수를 만드는 방법 function testA(){ console.log("A"); console.log("A"); console.log("A"); } //선언적 함수 //이름 없는 함수를 만드는 방법 var testB=function (){ console.log("B"); } //익명함수 // 함수 //함수 리터럴, 호출할 수 없어서 이름 변수를 통해 호출 console.log(testA); console.log(testB); //testA(); //testB(); </script> <script id="jsbin-source-javascript" type="text/javascript">//이름 있는 함수를 만드는 방법 function testA(){ console.log("A"); console.log("A"); console.log("A"); } //선언적 함수 //이름 없는 함수를 만드는 방법 var testB=function (){ console.log("B"); } //익명함수 // 함수 //함수 리터럴, 호출할 수 없어서 이름 변수를 통해 호출 console.log(testA); console.log(testB); //testA(); //testB();</script></body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ //이름 있는 함수를 만드는 방법 function testA(){ console.log("A"); console.log("A"); console.log("A"); } //선언적 함수 //이름 없는 함수를 만드는 방법 var testB=function (){ console.log("B"); } //익명함수 // 함수 //함수 리터럴, 호출할 수 없어서 이름 변수를 통해 호출 console.log(testA); console.log(testB); //testA(); //testB();