Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
JavaScript Tutorial
Language Basics 33 codes
Home
JavaScript Tutorial
Language Basics
1 Assign one variable to another variable
2 Braces indicate code blocks
3 Declare two variables in the same line
4 Define javascript code in BODY section
5 Define message in one block and output it in another
6 Define script in HEAD section
7 Define variable and assign value
8 Do simple calculation
9 End-of-line semicolons are optional
10 Hide scripts using comments
11 HTML Template Page supporting the JavaScript
12 Keywords
13 Mix complicated code with HTML
14 Mix simple code with HTML
15 Multiline comments
16 Naming Variables
17 Reassigning value to Variables
18 Reference a variable without declaration
19 Reference javascript source file stored outside
20 Reserved Words
21 SCRIPT tags
22 Single line comments
23 The noscript Tag
24 The Semicolon
25 Use parenthesis in expression
26 Use parenthesis in expression 2
27 Use self to reference the current document
28 Use the script tag to incluse your javascript code
29 Variable Scope
30 Variables
31 Variables can hold different types of values at different times
32 Variables dont have to be declared before being used
33 Working With JavaScript Variables