JavaScript Objects

JavaScript Objects Object oriented Programming in an important aspect of JavaScript. It is possible to use built-in objects available in JavaScript.  It is also possible for a JavaScript programmer to define his own objects and variable types. In this JavaScript tutorial, you will learn how to make use of built-in objects available in JavaScript. Built-in objects in JavaScript: Some of the built-in objects available in JavaScript are: Date Math String Array Object Of the above objects, the most widely used one is the String object. Objects are nothing but special… Read More

JavaScript String Object

JavaScript String Object In this JavaScript tutorial, you will learn about String Object, purpose of string object in JavaScript, purpose of string object, indexof method, lastIndexOf method and substring method along with syntax and example. Purpose of String Object in JavaScript: The main purpose of String Object in JavaScript is for storing text. General method of using String Object is to declare a variable and assign a string, in other words a text to the variable. var exf="Welcome" assigns the text Welcome to the variable exf defined. We have seen… Read More

JavaScript Date Object

JavaScript Date Object In this JavaScript tutorial, you will learn about date object and methods of date object explained along with syntax and example. JavaScript Date Object: Usage of Date Object: Date object of Java Script is used to work with date and times. General syntax for defining Date object in Java Script is as follows: var variablename=new Date( ) In the above new is a keyword which creates an instance of object and Date() defines variablename as Date Object. For example: var exf=new Date( ) In the above example,… Read More