This is a discussion on Objects in Javascript within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi, In javascript we can have Object also. We can do lot with this Objects Here we can create our ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, In javascript we can have Object also. We can do lot with this Objects Here we can create our own object
__________________ With, J. Jeyaseelan Everything Possible |
| Sponsored Links |
| |||
| Object Creation Generally objects may be created using the following syntax: name = new Object(); We can access its attribute and its values.
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| For instance Array, Date, Number, Boolean, and String objects can be created this way as in the example below. Most objects may be created this way except for the Math object which cannot be instantiated (an instance of it may not be created). ratings = new Array(6,9,8,4,5,7,8,10) var home = new String("Residence") var futdate = new Date() var num1 = new Number() String objects may also be created as follows: var string = "This is a test."
__________________ With, J. Jeyaseelan Everything Possible |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Proxy objects | vijayanand | C and C++ Programming | 0 | 09-22-2007 02:19 AM |
| Proxy objects | vijayanand | C and C++ Programming | 0 | 09-21-2007 02:39 AM |
| virtual objects | simplesabita | Testing Tools | 2 | 08-28-2007 05:40 AM |
| How many objects are there? | vadivelanvaidyanathan | Java Programming | 3 | 07-16-2007 09:49 PM |
| the new Net Objects 10 | aquariancore | Web Design Help | 1 | 04-20-2007 07:46 PM |