Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Beginner
Sep 8, 1999

Type the Keyword Exactly to Avoid Syntax Errors in JScript

VBScript is not case sensitive. JScript on the other hand, is case sensitive. So when Web scripts reference JScript keywords, care must be taken to type the keyword exactly as spelled in the reference documentation. The same applies to JScript variables and object, method, and property names. They should be used exactly as declared.

For example, code for Date object below will generate a "'date' is undefined" script error in IE:
var currentDate = new date();

However, this code below works properly:
var currentDate = new Date();

Jai Bardhan
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date