diff --git a/hello.js b/hello.js new file mode 100644 index 0000000..09fe132 --- /dev/null +++ b/hello.js @@ -0,0 +1,6 @@ +// その1: HTML本文中に出力する +document.write("Hello, world!(1)"); +// その2: ブラウザコンソールに出力する +console.log("Hello, world!(2)"); +// その3: 警告ウィンドウに出力する +alert("Hello, world!(3)");