Object-Oriented JavaScript (2nd Edition)
This book takes a do-it-yourself approach when it comes to writing code, because the best way to really learn a programming language is by writing code. You are encouraged to type code into Firebug's console, see how it works and then tweak it and play around with it. There are practice questio...
Saved in:
| Main Authors: | , |
|---|---|
| Format: | eBook |
| Language: | English |
| Published: |
Birmingham
Packt Publishing
2013
Packt Publishing, Limited |
| Edition: | 2 |
| Subjects: | |
| ISBN: | 1849693129, 9781849693127 |
| Online Access: | Get full text |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| Abstract | This book takes a do-it-yourself approach when it comes to writing code, because the best way to really learn a programming language is by writing code. You are encouraged to type code into Firebug's console, see how it works and then tweak it and play around with it. There are practice questions at the end of each chapter to help you review what you have learned. For new to intermediate JavaScript developer who wants to prepare themselves for web development problems solved by smart JavaScript! |
|---|---|
| AbstractList | This book takes a do-it-yourself approach when it comes to writing code, because the best way to really learn a programming language is by writing code. You are encouraged to type code into Firebug's console, see how it works and then tweak it and play around with it. There are practice questions at the end of each chapter to help you review what you have learned. For new to intermediate JavaScript developer who wants to prepare themselves for web development problems solved by smart JavaScript! In Detail JavaScript is the behavior, the third pillar in today's paradigm that looks at web pages as something that consists of clearly distinguishable parts: content (HTML), presentation (CSS) and behavior (JavaScript). Using JavaScript, you can create not only web pages but also desktop widgets, browser and application extensions, and other pieces of software. It's a pretty good deal: you learn one language and then code all kinds of different applications. While there's one chapter specifically dedicated to the web browser environment including DOM, Events and AJAX tutorials, the rest is applicable to the other environments Many web developers have tried coding or adopting some bits of JavaScript, but it is time to "man up" and learn the language properly because it is the language of the browser and is, virtually, everywhere. This book starts from zero, not assuming any prior JavaScript programming knowledge and takes you through all the in-depth and exciting futures hidden behind the facade. Once listed in the "nice to have" sections of job postings, these days the knowledge of JavaScript is a deciding factor when it comes to hiring web developers. After reading this book you'll be prepared to ace your JavaScript job interview and even impress with some bits that the interviewer maybe didn't know. You should read this book if you want to be able to take your JavaScript skills to a new level of sophistication. Approach You will first be introduced to object-oriented programming, then to the basics of objects in JavaScript. This book takes a do-it-yourself approach when it comes to writing code, because the best way to really learn a programming language is by writing code. You are encouraged to type code into Firebug's console, see how it works and then tweak it and play around with it. There are practice questions at the end of each chapter to help you review what you have learned. Who this book is for For new to intermediate JavaScript developer who wants to prepare themselves for web development problems solved by smart JavaScript! You will first be introduced to object-oriented programming, then to the basics of objects in JavaScript. This book takes a do-it-yourself approach when it comes to writing code, because the best way to really learn a programming language is by writing code. You are encouraged to type code into Firebug's console, see how it works and then tweak it and play around with it. There are practice questions at the end of each chapter to help you review what you have learned.For new to intermediate JavaScript developer who wants to prepare themselves for web development problems solved by smart JavaScript!. |
| Author | Sharma Kumar Chetan Stefanov Stoyan |
| Author_xml | – sequence: 1 fullname: Stefanov, Stoyan – sequence: 2 fullname: Sharma, Kumar Chetan |
| BookMark | eNo1z1tLwzAcBfCIF3Rz32Ev4vZQ-Ofa5FFHvYxBkYmvIUkT7Frb2tSJ397q9Olw4MeBM0EnTdv4IzTBQgLmlCt-PBbJlFAUE3WGLiRnKsWp5OdoFuMOADCoFDi5QIvc7rwbkrwvfTP4Yr42e7N1fdkN8wVpinlWlEPZNstLdBpMHf3sL6fo5S57Xj0km_z-cXWzSQynUoiESidTSpwVwAMrwDrFjRSsCGAcSEsLY1LLQAVsgwmBkEA5MOMcEZYJSqdoeRg2sfKf8bWth6j3tbdtW0WtUvl_jbLRXh9s17fvHz4O-pe58Upvap3drjBWRAgY5dVBVk2797Xu-vLN9F_6h-uqy_P1NgN4ot8KzF5d |
| ContentType | eBook |
| Copyright | 2013 |
| Copyright_xml | – notice: 2013 |
| DEWEY | 005.117 |
| DatabaseTitleList | |
| DeliveryMethod | fulltext_linktorsrc |
| Discipline | Computer Science |
| EISBN | 1680153595 9781680153590 1849693137 9781849693134 |
| Edition | 2 Second Edition. |
| ExternalDocumentID | 9781849693134 EBC1192660 book_kpOOJSE00Q |
| GroupedDBID | -VX 089 20A 5O. 6XM A4J AABBV AAKGN AANYM AAWZI AAZGR ABARN ABIAV ABIWA ABQPQ ABVLP ABWNX ACLGV ACNAM ACXXF ADBND ADVEM AECLD AEHEP AERYV AFOJC AFQEX AIXPE AJFER AKHYG ALMA_UNASSIGNED_HOLDINGS AMYDA APVFW ATDNW AZZ BBABE BPBUR BSWCA CMZ CZZ DRU DUGUG E2F EBSCA ECOWB GEOUK IVK IWL K-E L7C MYL NK1 NK2 O7H OHILO OODEK PQQKQ TD3 UE6 XI1 ABRSK AHWGJ |
| ID | FETCH-LOGICAL-a53866-38c8732cb605f4d0bc95a864df0ac08b3daa7b409f1bfaff22f3504acc26b4633 |
| IEDL.DBID | CMZ |
| ISBN | 1849693129 9781849693127 |
| IngestDate | Thu Nov 07 23:37:11 EST 2024 Wed Nov 26 04:14:54 EST 2025 Sat Nov 23 14:00:15 EST 2024 |
| IsPeerReviewed | false |
| IsScholarly | false |
| LCCallNum_Ident | QA76.73.J39.S74 201 |
| Language | English |
| LinkModel | DirectLink |
| MergedId | FETCHMERGED-LOGICAL-a53866-38c8732cb605f4d0bc95a864df0ac08b3daa7b409f1bfaff22f3504acc26b4633 |
| OCLC | 854971785 |
| PQID | EBC1192660 |
| PageCount | 426 |
| ParticipantIDs | askewsholts_vlebooks_9781849693134 proquest_ebookcentral_EBC1192660 knovel_primary_book_kpOOJSE00Q |
| PublicationCentury | 2000 |
| PublicationDate | 2013 2013-07-26 |
| PublicationDateYYYYMMDD | 2013-01-01 2013-07-26 |
| PublicationDate_xml | – year: 2013 text: 2013 |
| PublicationDecade | 2010 |
| PublicationPlace | Birmingham |
| PublicationPlace_xml | – name: Birmingham |
| PublicationYear | 2013 |
| Publisher | Packt Publishing Packt Publishing, Limited |
| Publisher_xml | – name: Packt Publishing – name: Packt Publishing, Limited |
| SSID | ssj0001097052 |
| Score | 1.9074739 |
| Snippet | This book takes a do-it-yourself approach when it comes to writing code, because the best way to really learn a programming language is by writing code. You... You will first be introduced to object-oriented programming, then to the basics of objects in JavaScript. This book takes a do-it-yourself approach when it... In Detail JavaScript is the behavior, the third pillar in today's paradigm that looks at web pages as something that consists of clearly distinguishable parts:... |
| SourceID | askewsholts proquest knovel |
| SourceType | Aggregation Database Publisher |
| SubjectTerms | Computer software JavaScript (Computer program language) Object-oriented programming (Computer science) Programming Languages Reusability Software Engineering Software patterns |
| TableOfContents | Title Page
Preface
Table of Contents
1. Object-Oriented JavaScript
2. Primitive Data Types, Arrays, Loops, and Conditions
3. Functions
4. Objects
5. Prototype
6. Inheritance
7. The Browser Environment
8. Coding and Design Patterns
Appendices
Index Element Properties -- DOM event listeners -- Capturing and bubbling -- Stop propagation -- Prevent default behavior -- Cross-browser event listeners -- Types of events -- XMLHttpRequest -- Sending the request -- Processing the response -- Creating XMLHttpRequest objects in IE prior to Version 7 -- A is for Asynchronous -- X is for XML -- An example -- Summary -- Exercises -- 8. Coding and Design Patterns -- Coding patterns -- Separating behavior -- Content -- Presentation -- Behavior -- Example of separating behavior -- Asynchronous JavaScript loading -- Namespaces -- An Object as a namespace -- Namespaced constructors -- A namespace() method -- Init-time branching -- Lazy definition -- Configuration object -- Private properties and methods -- Privileged methods -- Private functions as public methods -- Immediate functions -- Modules -- Chaining -- JSON -- Design patterns -- Singleton -- Singleton 2 -- Global variable -- Property of the Constructor -- In a private property -- Factory -- Decorator -- Decorating a Christmas tree -- Observer -- Summary -- A. Reserved Words -- Keywords -- Future reserved words -- Previously reserved words -- B. Built-in Functions -- C. Built-in Objects -- Object -- Members of the Object constructor -- The Object.prototype members -- ECMAScript 5 additions to Object -- Array -- The Array.prototype members -- ECMAScript 5 additions to Array -- Function -- The Function.prototype members -- ECMAScript 5 additions to a function -- Boolean -- Number -- Members of the Number constructor -- The Number.prototype members -- String -- Members of the String constructor -- The String.prototype members -- ECMAScript 5 additions to String -- Date -- Members of the Date constructor -- The Date.prototype members -- ECMAScript 5 additions to Date -- Math -- Members of the Math object -- RegExp -- The RegExp.prototype members isPrototypeOf() -- The secret __proto__ link -- Augmenting built-in objects -- Augmenting built-in objects - discussion -- Prototype gotchas -- Summary -- Exercises -- 6. Inheritance -- Prototype chaining -- Prototype chaining example -- Moving shared properties to the prototype -- Inheriting the prototype only -- A temporary constructor - new F() -- Uber - access to the parent from a child object -- Isolating the inheritance part into a function -- Copying properties -- Heads-up when copying by reference -- Objects inherit from objects -- Deep copy -- object() -- Using a mix of prototypal inheritance and copying properties -- Multiple inheritance -- Mixins -- Parasitic inheritance -- Borrowing a constructor -- Borrow a constructor and copy its prototype -- Summary -- Case study - drawing shapes -- Analysis -- Implementation -- Testing -- Exercises -- 7. The Browser Environment -- Including JavaScript in an HTML page -- BOM and DOM - an overview -- BOM -- The window object revisited -- window.navigator -- Your console is a cheat sheet -- window.location -- window.history -- window.frames -- window.screen -- window.open()/close() -- window.moveTo() and window.resizeTo() -- window.alert(), window.prompt(), and window.confirm() -- window.setTimeout() and window.setInterval() -- window.document -- DOM -- Core DOM and HTML DOM -- Accessing DOM nodes -- The document node -- documentElement -- Child nodes -- Attributes -- Accessing the content inside a tag -- DOM access shortcuts -- Siblings, body, first, and last child -- Walk the DOM -- Modifying DOM nodes -- Modifying styles -- Fun with forms -- Creating new nodes -- DOM-only method -- cloneNode() -- insertBefore() -- Removing nodes -- HTML-only DOM objects -- Primitive ways to access the document -- document.write() -- Cookies, title, referrer, domain -- Events -- Inline HTML attributes Error objects -- The Error.prototype members -- JSON -- Members of the JSON object -- D. Regular Expressions -- Index Intro -- Object-Oriented JavaScript Second Edition -- Table of Contents -- Object-Oriented JavaScript Second Edition -- Credits -- About the Authors -- About the Reviewer -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Errata -- Piracy -- Questions -- 1. Object-oriented JavaScript -- A bit of history -- Browser wars and renaissance -- The present -- The future -- ECMAScript 5 -- Object-oriented programming -- Objects -- Classes -- Encapsulation -- Aggregation -- Inheritance -- Polymorphism -- OOP summary -- Setting up your training environment -- WebKit's Web Inspector -- JavaScriptCore on a Mac -- More consoles -- Summary -- 2. Primitive Data Types, Arrays, Loops, and Conditions -- Variables -- Variables are case sensitive -- Operators -- Primitive data types -- Finding out the value type - the typeof operator -- Numbers -- Octal and hexadecimal numbers -- Exponent literals -- Infinity -- NaN -- Strings -- String conversions -- Special strings -- Booleans -- Logical operators -- Operator precedence -- Lazy evaluation -- Comparison -- Undefined and null -- Primitive data types recap -- Arrays -- Adding/updating array elements -- Deleting elements -- Arrays of arrays -- Conditions and loops -- The if condition -- The else clause -- Code blocks -- Checking if a variable exists -- Alternative if syntax -- Switch -- Loops -- While loops -- Do-while loops -- For loops -- For-in loops -- Comments -- Summary -- Exercises -- 3. Functions -- What is a function? -- Calling a function -- Parameters -- Predefined functions -- parseInt() -- parseFloat() -- isNaN() -- isFinite() -- Encode/decode URIs -- eval() A bonus - the alert() function -- Scope of variables -- Variable hoisting -- Functions are data -- Anonymous functions -- Callback functions -- Callback examples -- Immediate functions -- Inner (private) functions -- Functions that return functions -- Function, rewrite thyself! -- Closures -- Scope chain -- Breaking the chain with a closure -- Closure #1 -- Closure #2 -- A definition and closure #3 -- Closures in a loop -- Getter/setter -- Iterator -- Summary -- Exercises -- 4. Objects -- From arrays to objects -- Elements, properties, methods, and members -- Hashes and associative arrays -- Accessing an object's properties -- Calling an object's methods -- Altering properties/methods -- Using the this value -- Constructor functions -- The global object -- The constructor property -- The instanceof operator -- Functions that return objects -- Passing objects -- Comparing objects -- Objects in the WebKit console -- console.log -- Built-in objects -- Object -- Array -- A few array methods -- Function -- Properties of function objects -- Prototype -- Methods of function objects -- Call and apply -- The arguments object revisited -- Inferring object types -- Boolean -- Number -- String -- A few methods of string objects -- Math -- Date -- Methods to work with date objects -- Calculating birthdays -- RegExp -- Properties of RegExp objects -- Methods of RegExp objects -- String methods that accept regular expressions as arguments -- search() and match() -- replace() -- Replace callbacks -- split() -- Passing a string when a RegExp is expected -- Error objects -- Summary -- Exercises -- 5. Prototype -- The prototype property -- Adding methods and properties using the prototype -- Using the prototype's methods and properties -- Own properties versus prototype properties -- Overwriting a prototype's property with an own property -- Enumerating properties |
| Title | Object-Oriented JavaScript (2nd Edition) |
| URI | https://app.knovel.com/hotlink/toc/id:kpOOJSE00Q/object-oriented-javascript/object-oriented-javascript?kpromoter=Summon https://ebookcentral.proquest.com/lib/[SITE_ID]/detail.action?docID=1192660 https://www.vlebooks.com/vleweb/product/openreader?id=none&isbn=9781849693134&uid=none |
| hasFullText | 1 |
| inHoldings | 1 |
| isFullTextHit | |
| isPrint | |
| link | http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwzV3NS-wwEB9EPejFb1zfcyniQQ9l06RN23cRXKqiaBU_EC8lTVJcV9rF7ds_w7_ZSdpFQdSrx9AwQ5PMbz4ymQHY1YRpXaCk8SBXrh8bkdJUutLztUADJFBR02wivLiI7u_jyxl4nb6FMc2thmU10c8Wph-r2lxk9upK9gbq33CUpqfXCSFXvSo3cQq3MtWA0TZzn4RJ3TSC9s2ng-HIJrnhIWmCTF-wNZBOuMkQ658_vIdsSBySgDYP0WMeM9SVbdWo6RiV3KIYDxGfELvqMaq1huonpLfq62jpt_34Msxp88hiBWZ0uQpL09YSTos0a7CXNkzSlolzikyuLRNnj5bKSZTNNdtfh7uj5KZ_4rZNHVyB2Mq5yyIZhYzKHB2pwlckl3EgIu6rgghJopwpIcIc3c7CywtRFJQWLCC-kJLy3OeMbcBsWZV6E5yQ6jjCpWeBFugnoq0bejFaJDhXhp6SHdj5sBnZ5NleQI-zDzvG_A50mwXIRk19j8xMyt5XvAPOdO8yS6BNm82Sw76HBjLnZOsnGn9ggdo-GiZ28xdm65f_ehvm5aQejF-69ph1Ye44SW_PcHTmJm_2IQGX |
| linkProvider | Knovel |
| openUrl | ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.title=Object-Oriented+JavaScript&rft.au=Stefanov%2C+Stoyan&rft.au=Sharma%2C+Kumar+Chetan&rft.date=2013-07-26&rft.pub=Packt+Publishing&rft.isbn=9781849693134&rft.externalDocID=9781849693134 |
| thumbnail_m | http://cvtisr.summon.serialssolutions.com/2.0.0/image/custom?url=https%3A%2F%2Fvle.dmmserver.com%2Fmedia%2F640%2F97818496%2F9781849693134.jpg |
| thumbnail_s | http://cvtisr.summon.serialssolutions.com/2.0.0/image/custom?url=https%3A%2F%2Fcontent.knovel.com%2Fcontent%2FThumbs%2Fthumb7951.gif |

