The Book Object Definition : Objects Object Oriented : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Objects Object Oriented »

 

The Book Object Definition



<script type="text/javascript">
<!--
  function book(title, author, subject, rating) {    
    this.title = title;
    this.author = author;
    this.subject = subject;
    this.rating = rating;
    this.show = show;
  }
  function show() {
    alert(this.title + this.author + this.subject + this.rating);
  }
//-->
</script>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Objects Object Oriented