Home arrow JavaScript arrow The Power of Javascript: Basic Concepts

The Power of Javascript: Basic Concepts

The best way to learn any programming language is by practice. Javascript is not an exception to this rule, so we will introduce a lot of code in the articles of this series. In this article, you will be introduced to the very basic concepts of the Javascript language. We discuss comments, keywords, identifiers, statements and the semicolon, case sensitivity and white spaces. Note that our examples at this time are limited and we will focus more on the concepts, but after a few articles we are going to discuss many examples on each concept.

Author Info:
By: Michael Youssef
Rating: 4 stars4 stars4 stars4 stars4 stars / 30
July 05, 2005
  1. · The Power of Javascript: Basic Concepts
  2. · Javascript Comments
  3. · Javascript Statements
  4. · Keywords
  5. · Identifiers
  6. · White Spaces and Case Sensitivity

print this article

The Power of Javascript: Basic Concepts
(Page 1 of 6 )

To make the concepts easier for you to grasp we will have only one example for this article to explain the concepts we need to discuss. So let's take a look at our simple example.

The Example

This example is very simple, it adds two numbers and writes the total to the Web page. Let's take a look at the code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<title>Hello World</title>
<script language="JavaScript" type="text/javascript">
// This script is used to explain the concepts of
/* Comments, Keywords, Identifiers,
Case Sensitivity, Whitespaces and statements*/

// the firstValue is a location in memory that
// stores the value 10
var firstValue = 10;
var secondValue = 23; // the secondValue is another location in memory that stores the value 23
// result is a location in memory that
// stores the total value of adding firstValue and secondValue
var result = firstValue + secondValue;
// the next line writes some text to the web page
document.write("The total of adding firstValue and secondValue = ");
// the next line writes the value of the result memory location


Save the file and load it into your browser. You will get only one line written to the Web page:

This code example contains everything we need to explain for this article, so let's begin.

blog comments powered by Disqus

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials