37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
<!-- Reading School 2018, HTML page by Matthew Grove, Year 10 -->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
|
<meta name="HandheldFriendly" content="True">
|
|
|
|
<!-- import Roboto (font) -->
|
|
<link href="/css/roboto.css" rel="stylesheet" type="text/css">
|
|
|
|
<!-- import Bootstrap -->
|
|
<link href="/css/bootstrap.min.css" rel="stylesheet" type="text/css">
|
|
|
|
<!-- import local styling & scripts -->
|
|
<link href="../css/presentation-imports.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body>
|
|
<h2>JavaScript</h2>
|
|
<p>
|
|
JavaScript (JS) is a high-level, client-side language, meaning that it is like a human language
|
|
(rather than, for example, binary) and runs on the end user's computer. It is used for many purposes,
|
|
including editing content on a webpage, performing mathematical operations and storing variables.
|
|
Each line of JavaScript should end in a semicolon, for example:
|
|
<br>
|
|
<code>
|
|
// this code sets the content of the element with the ID "id_name" to "Hello World!"<br>
|
|
document.getElementById("id_name").innerHTML = "Hello World!";
|
|
</code>
|
|
<br>
|
|
A single line comment in JS is denoted by a double forward slash (<code>//</code>); a multi line comment
|
|
is started with <code>/*</code> and ended with <code>*/</code>.
|
|
</p>
|
|
</body>
|
|
</html>
|