Home arrow JavaScript arrow Page 4 - The Power of Javascript: Basic Concepts
JAVASCRIPT

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
TABLE OF CONTENTS:
  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
SEARCH DEVARTICLES

The Power of Javascript: Basic Concepts - Keywords
(Page 4 of 6 )

The English language (or any other thing that we can call a language) is made up of words that have special meaning to the people who speak the language. The same thing applies to Javascript. There is a set of words that is used by the Javascript interpreter; these words have special meaning and are used to perform operations. We call these words keywords or reserved keywords.

To explain what a keyword can do in a script, say we need to declare a memory location. To do so, we need to use the Javascript keyword var (wait until we discuss identifiers, and we will complete it). The following is the list of keywords reserved by the Javascript language. This means that they have been reserved for use by the Javascript language and you can't use them; again you will understand this better as we go on.

breakcasecontinuecatchdefault
deletedoelsefinallyfor
functionifininstanceofnew
returnswitchthisthrowtry
typevarvoidwhilewith

So in our example we have var as a keyword. Also, document is considered a keyword, but I will not discuss it now. The following list is another set of keywords that are reserved for Javascript for future use. You can say that they're reserved to add more functionality to the Javascript language.

abstractbooleanbytecharclass
constdebuggerdoubleenumexport
extendsfinalfloatgotoimplements
importintinterfacelongnative
packageprivateprotectedpublicshort
staticsupersynchronizedthrowstransient
volatile    

 


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- 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 
Support 

Developer Shed Affiliates

 




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