0
0

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 3 years have passed since last update.

ちょっとした JavaScript 確認コードのための下敷きコード

Last updated at Posted at 2021-10-05

ちょっとした JavaScript 確認コードのための下敷きコードをここにメモ。
JavaScript を .js ファイルに記入して、.htmlファイルを Webブラウザで開くことにより実行できます。

simplejs.js

// Simple JavaScript
console.log('Hello JavaScript World.');
document.write("<p>Hello JavaScript world</p>");

simplejs.html

<!DOCTYPE html>
<html lang="en">
<!-- HTML for Simple JavaScript -->
<head>
    <title>Simple JavaScript Sample</title>
    <meta charset="UTF-8">
</head>
<body>
    <script src="./simplejs.js" charset="UTF-8"></script>
</body>
</html>
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?