c-- styles for logos and headline links do not modify internet, red, or black styles -->

Intranet Journal   Earthweb  
Events Jobs Premium Services Media Kit Network Map E-mail Offers Vendor Solutions Webcasts

   Intranet Journal Subjects
Search Earthweb

Privacy Policy



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

internet commerce
Be a Commerce Partner
















 

[ Home | Discussion Forum | How Do I... | Lotus Notes Intranets | Microsoft SharePoint | Products | Shopping  ]

free news!

Some Other JavaScript Sources On IDM
·  JavaScript FAQ
· Basic JavaScript with Examples
·   Javascript Event Handlers
·   Putting JavaScript to Work
·   eXchange Thread: Javascript for Date Last Changed & Y2K
·   JS/Configurator: A Computer Cost Estimator
·   A Look at JavaScript in Microsoft IE vs. Netscape Communicator
·   JavaScript Forms and Frames: Enhancing HTML on the Client Side
·   JS/Configurator: A Computer Cost Estimator

Tutorial: Introduction to JavaScript


By Aaron Weiss

Operators

 

string

Strings can be compared using the comparison operators. Additionally, you can concatenate strings using the + operator.

"dog" + "bert"

yields

"dogbert"

 

assignment

The assignment operator (=) lets you assign a value to a variable. You can assign any value to a variable, including another variable (whose value will be assigned). Several shorthand assignment operators allow you to perform an operation and assign its result to a variable in one step.

= Assigns the value of the righthand operand to the variable on the left.
Example: total=100;
Example: total=(price+tax+shipping)
+=
(also -=, *=, /=)
Adds the value of the righthand operand to the lefthand variable.
Example: total+=shipping (adds value of shipping to total and assigned result to total)
&=
(also |=)
Assigns result of (lefthand operand && righthand operand) to lefthand operand.

 

JavaScript Tutorial   [Previous: Boolean | Next:Special]

[print version of this page]

IntranetDesignMagazine

 JavaScript Tutorial

Discuss
JavaScript
in the eXchange!


Contents
· VERSIONS OF JAVASCRIPT

· EMBEDDING JAVASCRIPT

· JAVASCRIPT GRAMMAR

· VARIABLES AND DATA TYPES

· OPERATORS
· Arithmetic or Computational
· Comparison
· Boolean
· String and Assignment
· Special
· Statements
· Conditionals
· Loops
· Object Manipulation
· Comments

· FUNCTIONS
· Defining Funtions
· Calling Functions

· OBJECTS
· Document Object Model
· Properties
· Methods
· Creating Objects

· EVENT HANDLERS

· CONCLUSION