m taimoor khan taimoorkhan@ciit attock edu pk
Download
Skip this Video
Download Presentation
Javascript Objects

Loading in 2 Seconds...

play fullscreen
1 / 16

Javascript Objects - PowerPoint PPT Presentation


  • 100 Views
  • Uploaded on

M. Taimoor Khan [email protected] Javascript Objects. Javascript Objects. Every data-type defined in Javascript is an object It has a class definition for it, unlike the basic data types

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Javascript Objects' - onawa


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
javascript objects
Javascript Objects
  • Every data-type defined in Javascript is an object
  • It has a class definition for it, unlike the basic data types
  • It allows the variables (objects) to make use of the built-in properties and functions defined for them
  • For example Number, String, Date, Array etc
user defined objects
User defined objects
  • Along with the built-in object types, the users can also define their own type of objects.
  • They are defined with some data members and member functions
  • Unlike classes in other programming languages, each object has to be re-defined with their own set of attributes and behavior
  • However, an object can be assigned to another object to get the same structure and values
example
Example

creating objects with constructor
Creating objects with constructor

adding member functions
Adding Member Functions

arrays
Arrays

date object
Date object

date member functions
Date member functions

math object
Math Object

string objects
String Objects