PGDEL/DECP03/Unit3/18

From WikiEducator
< PGDEL‎ | DECP03‎ | Unit3
Jump to: navigation, search



Unit 3.3 Web application development tools & Technologies
Variables

Variables are created using var command and assigning a value to a variable is done using an assignment operator (=).

Syntax:     

   var <variable name>=value;

Example:

       var name;
       var enroll_no=12000123

Variable names are case sensitive.

Operators

The following are the some frequently used operators in JavaScript:

  1. Arithmetic operators

  2. Logical operators

  3. Comparison operators

  4. Assignment operators

Road Works.svg Work in progress, expect frequent changes. Help and feedback is welcome. See discussion page. Road Works.svg