JavaScript
  Home arrow JavaScript arrow Page 4 - The Power of Javascript: Basic Concepts
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

The Power of Javascript: Basic Concepts
By: Michael Youssef
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 16
    2005-07-05

    Table of Contents:
  • The Power of Javascript: Basic Concepts
  • Javascript Comments
  • Javascript Statements
  • Keywords
  • Identifiers
  • White Spaces and Case Sensitivity

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    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    

     

    More JavaScript Articles
    More By Michael Youssef


     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT