Browse DevX
Sign up for e-mail newsletters from DevX

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



Building the Right Environment to Support AI, Machine Learning and Deep Learning

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.



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