posted 11/18/2009 by mohit kumar
In this blog I will explain how to create a Object in JavaScript.
<html> <head> <script type="text/javascript"> var info = new Object(); info.Name = "Mohit"; info.Address = "Delhi"; info.PhNo = 100; alert("Name: " + info.Name + " Address: " + info.Address + " PhNo: " + info.PhNo); </script> </head> </html>
In above code i have created a info object and added properties and assigned value to them.
Mohit Kumar
What kind of email newsletter would you prefer to receive from CodeAsp.Net?18