- loosely typed
- it is not done with executable files, but done with type
- "load and go"
Javascript uses numbers, strings, bollean values, and unknowns. Operators used include basic arithmetic signs and logical operators. There are best practices that shorten some statements, but most of the Javascript language makes logical sense.
Below is my first assignment:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Prerequisite Assignment 1</title>
<script type="text/javascript">
var t = '2';
var y = '2';
var h = parseInt(t) + parseInt(y);
alert('2 + 2 = ' + h);
</script>
</head>
<body>
<center><p>This is my prerequisite assignment.</p></center>
</body>
</html>