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