diff --git a/hello.html b/hello.html new file mode 100644 index 0000000..d266f1c --- /dev/null +++ b/hello.html @@ -0,0 +1,22 @@ + + + + +Hello! + + +

はろーわーるど

+ + + + + diff --git a/hello.js b/hello.js new file mode 100644 index 0000000..7a6929e --- /dev/null +++ b/hello.js @@ -0,0 +1,7 @@ + +// その1: HTML本文中に出力する +document.write("Hello, world!(1)"); +// その2: ブラウザコンソールに出力する +console.log("Hello, world!(2)"); +// その3: 警告ウィンドウに出力する +alert("Hello, world!(3)"); diff --git a/hello2.js b/hello2.js new file mode 100644 index 0000000..ee447f7 --- /dev/null +++ b/hello2.js @@ -0,0 +1,5 @@ +#!/usr/bin/env js +s = "Hello, world!"; +for (var i=0; i