diff --git a/liscott327/Helloword.js b/liscott327/Helloword.js new file mode 100644 index 0000000..a460b59 --- /dev/null +++ b/liscott327/Helloword.js @@ -0,0 +1 @@ +console.log("Helloworld!"); diff --git a/liscott327/README.md b/liscott327/README.md new file mode 100644 index 0000000..ece4360 --- /dev/null +++ b/liscott327/README.md @@ -0,0 +1,11 @@ +# 練習總整理 + +### 練習測試檔案 +* helloworld.js + +### node.js練習 +* server.js +* server2.js +* function.js +* function1.js +* diff --git a/liscott327/function.js b/liscott327/function.js new file mode 100644 index 0000000..b68426a --- /dev/null +++ b/liscott327/function.js @@ -0,0 +1,10 @@ +function say(word) { + console.log(word); +} + +function execute(someFunction, value) { + someFunction(value); +} + +execute(say, "Hello"); + diff --git a/liscott327/function1.js b/liscott327/function1.js new file mode 100644 index 0000000..4975c29 --- /dev/null +++ b/liscott327/function1.js @@ -0,0 +1,6 @@ +function execute(someFunction, value) { + someFunction(value); +} + +execute(function(word){ console.log(word) }, "Hello"); + diff --git a/liscott327/git/README.md b/liscott327/git/README.md new file mode 100644 index 0000000..342e82f --- /dev/null +++ b/liscott327/git/README.md @@ -0,0 +1 @@ +### GIT練習用資料夾 diff --git a/liscott327/git/document.txt b/liscott327/git/document.txt new file mode 100644 index 0000000..9d6f823 --- /dev/null +++ b/liscott327/git/document.txt @@ -0,0 +1,7 @@ +first line +second line +【星島日報報道】香港天文台表示,今年首個熱帶氣旋「尼伯特」已增強為颱風,預測在周五會進一步增強為超級颱風,屆時將在香港800公里附近略過,吹向呂宋以東至台灣一帶。 + +香港天文台表示,現時驟雨正影響廣東沿岸及南海東北部。在正午12時,颱風「尼伯特」集結在雅蒲島之西北偏北約760公里,預料向西北移動,時速約28公里,移向呂宋以東至台灣一帶。預料「尼伯特」會在未來數天逐漸增強,並移向呂宋以東至台灣一帶。周五氣溫將最高達35度,天晴酷熱。 + + diff --git a/liscott327/server2.js b/liscott327/server2.js new file mode 100644 index 0000000..c2b7268 --- /dev/null +++ b/liscott327/server2.js @@ -0,0 +1,3 @@ +var http = require("http"); +var server = http.createServer(); +server.listen(8888); diff --git a/liscott327/sever.js b/liscott327/sever.js new file mode 100644 index 0000000..cb9f24e --- /dev/null +++ b/liscott327/sever.js @@ -0,0 +1,6 @@ +var http = require("http"); +http.createServer(function(request, response) { + response.writeHead(200, {"Content-Type": "text/plain"}); + response.write("How are you?"); + response.end(); +}).listen(8888); diff --git a/liscott327/test/README.md b/liscott327/test/README.md new file mode 100644 index 0000000..0294e30 --- /dev/null +++ b/liscott327/test/README.md @@ -0,0 +1,4 @@ +# Intern tutorial + + +### 這是一個測試資料夾 diff --git a/liscott327/test/test.js b/liscott327/test/test.js new file mode 100644 index 0000000..accefce --- /dev/null +++ b/liscott327/test/test.js @@ -0,0 +1 @@ +console.log("Hello World");