[Learning]#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

<!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

Clap/Share/Follow

If you guys find this article helpful, please kindly do the writer a favor — giving 5 clicks at the GREEN area and 10~50 claps at the bottom of this page.

Most important of all, feel free to comment and share your ideas below to learn together!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vida Lin

Vida Lin

PM, Relationship, Travel, or anything quirky but interesting.|Subscribe & buy Vida a drink @LikerLand, the bottom of each article. 在文章底下LikerLand訂閱、請Vida喝一杯飲料 ❤