devxlogo

Type the Keyword Exactly to Avoid Syntax Errors in JScript

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();

See also  Is Machine Learning Automating Creativity in Graphic Design?
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist