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 1 year has passed since last update.

JavaScriptでHelloWorldを表示してみた

Posted at

概要

JavaScriptでHelloWorldを表示してみました。以下のページを参考にしました。
https://www.sejuku.net/blog/107067

ソースコードを実装

上記のページを参考に実装しました。

index.html
<!DOCTYPE html>
<html lang="ja">
  <head>
    <meta charset="utf-8">
    <title>Sample</title>
  </head>
  <body>
  
 
    <script>
 
      //ここにJavaScriptを記述する
    alert('Hello World');
    </script>
  </body>
</html>

ブラウザで開く

Chromeでindex.htmlを開くと以下のように実行されました。
Screenshot from 2023-05-01 16-00-32.png

何かの役に立てばと。

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?