-
Notifications
You must be signed in to change notification settings - Fork 0
JavaScript
JavaScript is a programming language. Even though the name contains Java, it has little to do with this programming language.
JavaScript is the programming language of a Chrome Application. It is JavaScript that is executed when we use the mouse or the keyboard to interact with our application.
Statements describe things to do. Each statement is ended with a semi-colon (;). Multiple statements can be combined into a set of curly-brackets {} called a block statement. A block statement is not ended with a semi-colon.
statement1;
statement2;
{
statement3;
statement4;
}Please note that block statements do not provide a scope. In other languages such as Java, something inside curly-brackets are considered private to that area, but this is not the case in JavaScript
An object in JavaScript
A JavaScript file is loaded from an HTML5 page using the script element.
<html>
<head>
<script type="text/javascript" src="background.js">Your browser does not support JavaScript</script>
</head>
<body>
</body>
</html>The type attribute indicates the type of script. It is necessary to specify this because browsers support other script languages. Internet Explorer for example has its own types; JScript, and VBScript.
The src attribute gives the name of the file that contains the JavaScript source code.
Introduction
[Install CDE](Install CDE)
[A Ringing Bell](A Ringing Bell)
[Projectile Movement](Projectile Movement)
[Map with location](Map with location)
[Slide 15 Puzzle](Slide 15 Puzzle)
[A Running Man](A Running Man)
Sudoku
[Package Chrome Application](Package Chrome Application)
[Uploading Your Application](Uploading Your Application)