#12 JavaScript Introduction

What is JavaScript?

How do we usually write JavaScript language?

Example

<script type="text/javascript">
    alert("Always call your girlfriend 'young lady' means...");
    alert("You are good at safing your relationship.");
</script>
  • Add a tag <script></script> and an attribute to indicate that the language we’re writing is JavaScript.
  • A command, alert, and its string "Always call your girlfriend 'young lady' means..."
    • The string can be multiple, but don’t forget to add a semicolon in the end of it.

Final Design

https://ithelp.ithome.com.tw/upload/images/20210911/20130362qROzXW1CuN.png
https://ithelp.ithome.com.tw/upload/images/20210911/20130362t9yDhP92SY.png

<!DOCTYPE html>
<html>
<head>
    <title>JavaScript</title>
    <script type="text/javascript">
        alert("Always call your girlfriend 'young lady' means...");
        alert("You are good at safing your relationship.");
    </script>
</head>
</html>

Music of Today: Butterflies by Johnny Stimson


Like/Share/Follow

Feel free to comment and share your ideas below to learn together!
If you guys find this article helpful, please kindly do the writer a favor — LIKE this article./images/emoticon/emoticon12.gif


<<:  [Day04] swift & kotlin 入门篇!(2) 基础语法-型别

>>:  @Day12 | C# WixToolset + WPF 帅到不行的安装包 [系统背景服务化]

[Day2] Vite 出小蜜蜂~动画 Animation!

Day2 Animation 动画 动画在游戏中扮演非常重要的角色, 当绘制的角色在萤幕上动起来时,...

Day 28 - Spring Security (五) JwtAuthenticationProvider

实作 新增依赖 <!-- JWT --> <dependency> <...

Day_14 Router/Switch/Gateway/NAT

前面几天连续介绍有线与无线的应用,多数家中或单位的网路就都从这些应用做拓展。让透天每层楼都有网路、w...

Day02 - 观察:自由的程序码?有什麽蛛丝马迹、现象?

自由的潜在风险 -( 问题发生的原因 ) 从前一天的故事及开发范例,我们发现随着新需求的出现,我们必...

Day 11 - [爬虫] 01-蒐集训练资料 以卫服部长照常见问题为例

撰写 Python 程序码蒐集网路上的长照相关问答资讯,相比使用人工蒐集的方式,程序自动化蒐集方便又...