If you've used a more traditional object-oriented language, such as C++ or Java, JavaScript probably doesn't seem object-oriented at all. It has no concept of classes, and you don't even need to define any objects in order to write code. But don't be fooled—JavaScript is an incredibly powerful and expressive object-oriented language that puts many design decisions right into your hands.
In The Principles of Object-Oriented JavaScript, Nicholas C. Zakas thoroughly explores JavaScript's object-oriented nature, revealing the language's unique implementation of inheritance and other key characteristics. You'll learn:
The difference between primitive and reference values
What makes JavaScript functions so unique
The various ways to create objects
How to define your own constructors
How to work with and understand prototypes
Inheritance patterns for types and objects
The Principles of Object-Oriented JavaScript will leave even experienced developers with a deeper understanding of JavaScript. Unlock the secrets behind how objects work in JavaScript so you can write clearer, more flexible, and more efficient code.
Foreword by Cody Lindley
Acknowledgments
Introduction
Chapter 1: Primitive and Reference Types
Chapter 2: Functions
Chapter 3: Understanding Objects
Chapter 4: Constructors and Prototypes
Chapter 5: Inheritance
Chapter 6: Object Patterns
Index
《和女儿一起长大》内容简介:★如果你也有女儿,请读读这本书。作家池莉大爱之作,深情讲述与女儿24年共同成长经历。从小生命的孕
你必须知道的495个-C语言问题 本书特色 《你必须知道的495个c语言问题》以问答的形式组织内容,讨论了学习或使用c语言的过程中经常遇到的一些问题。书中列出了...
NationalBestseller“Nootherbookofferssuchanaccessibleandbalancedtourofthemanybene...
《讲述中国历史》内容简介:这是一部美国历史学家魏斐德从全球范围来解析中国历史的著作,堪称其40年中国史研究集大成之作!内容涵
Excel VBA编程实战宝典-附DVD光盘 本书特色 “开发宝典丛书”是由清华大学出版社为软件开发爱好者精心打造的一套软件开发百科全书。丛书强调“全面...
SolidWorks快速入门教程 本书特色 本书是学习SolidWorks2016中文版的快速入门与提高教程,内容包括SolidWorks2016功能概述、软件...
《我因思爱成病》内容简介:这是作者李兰妮此前已出版的长篇纪实散文《旷野无人——一个抑郁症患者的精神档案》的续篇。作者持续探
《汽车材料及轻量化趋势》内容简介:作为提高汽车燃油经济性的手段之一,轻量化并不是新鲜的技术名词。从20世纪70年代以来,汽车轻
《移动端网络营销推广实战从入门到精通》内容简介:移动互联网时代,微营销兴起,对于企业、商家或移动互联网平台而言,利用各种移
《编程与类型系统》内容简介:本书全面介绍类型系统的特性,从基本类型开始,一直介绍到函数类型和子类型、OOP、泛型编程和高阶类型
《CleanCode(评注版)》提出一种观念:代码质量与其整洁度成正比。干净的代码,既在质量上较为可靠,也为后期维护、升级奠定了良好
GetuptospeedontheprincipaltechnologiesintheJavaPlatform,EnterpriseEdition7,andle...
AhoandUllmanhavecreatedaCversionoftheirgroundbreakingtext.Asinthattext,thisbookc...
网页设计越做越难,有时会距离自己想要的结果越来越远,越来越焦急。其实,最重要的是信心,无论经历多少失败也能站起来的勇气,
《Web2.0策略指南》是有关战略的。书中的示例关注的是Web2.0的效率,而不是聚焦于技术。你将了解到这样一个事实:创建Web210业务
《文化翻译与经典阐释(增订本)》内容简介:本书是作者的一部专题研究文集,分为上中下三编:上编“翻译的文化学反思”,首次在中
本书面向所有对机器学习与数据挖掘的实践及竞赛感兴趣的读者,从零开始,以Python编程语言为基础,在不涉及大量数学模型与复杂编
ThisupdatetoaWroxbestsellerdivesinandguidesthereaderthroughtheentireprocessofcre...
《推手》内容简介:王志纲二十年磨一剑的战略思路与实践,中国著名民间智库的思想和案例精华,政府及企业决策者、执行者必读!在中
《诗经选》内容简介:《诗经》是我国很早的一部诗歌总集,收有305篇诗歌,标志着我国诗歌创作的第一个高峰,因为它在创作上的成就,