Welcome to www.programmer2programmer.net Its all about programming

programmer2programmer.net

 Tips
 Microsoft Certification
 Project Idea NEW
 Connection Strings
 Password Recovery
 SQL Injection
 Encryption & Decryption
  
 LIVE Academic Project
 Project #1 - VB6, Access
  Project #2 - VB.Net, SQL
 Project #3 - ASP, Access
 Project #4 - C#, SQL
 Project #5 - VB6, SQL
 Project #6 - Steganography
 Download MBA Project
  2012 New Projects Ad
  
 University Question Paper and Assignment
 SMU - Question Paper
 SMU - Assignment
 SCDL - Assignment
  
 Interview Question Answer
 General & HR Round
 Visual Basic 6
 VB.Net & C#
 ASP.Net
 SQL Server
  Oracle and DBA NEW
 My SQL
  

100% Tested
Ready Academic IT Projects

BE, ME, BTech, BCA, MCA, MBA, Bsc-IT, MS, BIT, ADIT, DOEACC, IGNOU, SMU
readymadeproject.com
One stop solution for VB6, VB.Net, C#, ASP.Net, Crystal Report, Oracle, SQL Server, MySql, PHP, XML, AJAX ....
Home Personal Member Forum Source Project Tips Contact
 

Java Script

Java Script Syntax and Features

 1. There is no need to declare variable, however you can
     define variable with var keyword.
 2. Curl braces ({}) are separated two code blocks.
 3. White space and carriage return are not count in code statement.
 4. Semicolon (;) terminate a statement.
 5. For single line comment use double slash (//).
 6. For multi line comment use /* and */ sign.
1. What is Java Script

2. Java Script Syntax

3. Java Script Objects
4. Java Script Sample Code
5. Java Script FAQ

Variable name rules
Variable are place holder of value used in run time by the program, every variable has an unique name within the scope of execution, while declaring the variable always keep un mind.

 1. Must start with number and underscore (_)
 2. Use any alphanumeric character.
 3. Do not use any special character and white space.
 4. Variable name are case sensitive.
 5. Do not use keyword as variable name.

Operator and order of precedence

1 . [] ()
2 ++ -- !~
3 * / %
4 + -
5 << >> >>>
6 < > <=

>=

7 == !=
8 &
9 ^
10 |
11 &&
12 ||
13 ?:
14 = += -+ *= /= %= <<= >>= >>>= &= ^= !=

String Operators

+ Concatenation


Comparison Operators

== Equal To
!= Not Equal To
< Less Than
> Greater Than
>= Greater than or equal to
<= Less than or equal to


Arithmetic Operators

* Multiplication
/ Division
+ Addition
- Subtraction

Logical Operators

&& AND

Assignment Operator

= Assignment

Keyword List
In JavaScript there are 50 keywords, this are reserve word in the language you can not use this keyword in naming of variable or function.

abstract float public
boolean for return
break function short
byte goto static
case if super
catch implements switch
char import synchronized
class in this
const instanceof throw
continue int throws
default interface transient
do long true
double native try
else new var
extends null void
false package while
final private with
finally protected

Conditional Construct
 1. if.. else ..
 2. switch case

Looping Construct
 1. for 
 2. while

User Define Function
 function <functionname>(argument)
 {
   //function body
  return <value>
 }


3. Java Script Objects
C) Atanu Maity, 2006-200