8
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

javaScript(開発環境)

Last updated at Posted at 2014-01-29

記述方法

HTMLに直書き

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" dir="ltr">
<head>
<title>直接書き</title>
</head>
<body>
<script type="text/javascript">ここに書く</script>
</body>

外部ファイル

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" dir="ltr">
<head>
<title>外部ファイル</title>
<script type="text/javascript" src="sample.js"></script>
</head>
<body>
</body>

便利な練習用サイト

最近ではWeb上でJavaScriptを書いて実行出来るサイトがあります。
以下2つ

  • jsdoit
     githubのアカウントから利用した。以下サイトの写真。使えそう。
     jsdoit.png

  • jsfiddle
     こんなのもあるがまだ使用してない。

まとめ

  • プログラムは書かないと覚えない
  • JavaScriptはブラウザ上で動く唯一のプログラミング言語である。
  • JavaScriptを実行するにはscript要素を使う(記述方法参照)。
  • 開発ツールはあらかじめ整備しておく
    • (FirebugをコンソールをONにする)
    • (またグーグルクロームの設定も本に乗っている_P7)
8
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?