a javascript object is an example of data type


A JavaScript object is an example of data type. Object is given a unique name & the set of properties of the corresponding object might be accessed by means of the dot syntax. As a quick introduction to the concept of JavaScript objects, here is the code which develop instance of an object called my Obj:

var myObj = new Object();

myObj.business = "Voice and Data Networking"; myObj.CEO = "IGNOU";

myObj.ticker = "CSCO";

After having run that code (in a scope condition that allow myObj to be accessed as needed), you could run this...

document.write("My Object ticker symbol is " + myObj.ticker + ".");

...and obtain a total sentence in HTML document.

Request for Solution File

Ask an Expert for Answer!!
PHP Web Programming: a javascript object is an example of data type
Reference No:- TGS0416475

Expected delivery within 24 Hours