Friday Freebies: Object-Oriented Javascript pdf

354 687 0
Friday Freebies: Object-Oriented Javascript pdf

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... behavior (JavaScript) JavaScript programs run inside a host environment The web browser is the most common environment, but it is not the only one Using JavaScript, you can create all kinds of widgets, application extensions, and other pieces of software Learning JavaScript is a pretty good deal: you learn one language and can then code all kinds of different applications This book is about JavaScript. .. and libraries JavaScript is indeed taken seriously and developers are starting to rediscover and enjoy its unique object-oriented features more and more Once listed in the "nice to have" sections of job postings, these days the knowledge of JavaScript is a yes/no factor when it comes to hiring web developers Common job interview questions you can hear today include: "Is JavaScript an object-oriented. .. language? Good Now how do you implement inheritance in JavaScript? " After reading this book, you'll be prepared to ace your JavaScript job interview and even impress your interviewers with some bits that maybe they didn't know Object-Oriented Programming Before diving into JavaScript let's take a moment to review what people mean when they say "object-oriented" , and what the main features of this programming... the all-important concept of prototypes in JavaScript Chapter 6 expands your "thinking in JavaScript" horizon, discussing a dozen ways to implement inheritance in JavaScript Chapter 7 is the browser chapter In this chapter, you learn about BOM (Browser Object Model), DOM (W3C's Document Object Model), browser events, and AJAX Chapter 8 dives into various unique JavaScript coding patterns, as well as several... means an extensive list JavaScript started inside web pages, but today it's safe to say it is practically everywhere The Future We can only speculate what the future will be, but it's quite certain that it will include JavaScript For quite some time JavaScript may have been underestimated and underused (or rather overused in the wrong ways), but every day we witness new uses of JavaScript in much more... patterns, translated to JavaScript from the Book of Four, the most influential work of software design patterns Appendix A lists the reserved words in JavaScript Appendix B is a reference to the built-in JavaScript functions, together with sample uses Appendix C is a reference that provides detail and provides examples of the use of every method and property of every built-in object in JavaScript Appendix... rich and responsive user interfaces, heavily employing code written in the JavaScript language JavaScript started with simple one-liners embedded in HTML, but is now used in much more sophisticated ways Developers leverage the object-oriented nature of the language to build scalable code architectures made up of reusable pieces JavaScript provides behavior, the third pillar in today's paradigm that sees... often at the expense of usable pages These various ways to abuse JavaScript was the other reason why the language got its bad reputation This caused "the real programmers" (developers with background in more established languages such as Java or C/C++) to dismiss JavaScript as nothing but a toy for front-end designers to play around with The JavaScript backlash caused some web projects to completely ban... environment, but it is not the only one JavaScript can run on the server, on the desktop, and in rich media Today, you can use JavaScript to do all of this: • Create rich and powerful web applications (the kind of applications that run inside the web browser, such as Gmail) • Write server-side code such as ASP scripts or, for example, code that is run using Rhino (a JavaScript engine written in Java) •... desktop-like rich Internet applications, drag-and-drop maps and webmail clients, rely heavily on JavaScript to provide a highly interactive user experience And if we never had the chance to properly explore JavaScript before, now is the time to sit down and (re-)learn it This book doesn't assume any prior knowledge of JavaScript and works from the ground up to give you a thorough understanding of the language . alt="" Object-Oriented JavaScript Create scalable, reusable high-quality JavaScript applications, and libraries Stoyan Stefanov BIRMINGHAM - MUMBAI Object-Oriented. prototypes in JavaScript. Chapter 6 expands your "thinking in JavaScript& quot; horizon, discussing a dozen ways to implement inheritance in JavaScript. Chapter

Ngày đăng: 22/03/2014, 16:20

Từ khóa liên quan

Mục lục

  • Object-Oriented JavaScript

  • Table of Contents

  • Preface

  • Chapter 1: Introduction

    • A Bit of History

      • The Winds of Change

      • The Present

      • The Future

      • Object-Oriented Programming

        • Objects

        • Classes

        • Encapsulation

        • Aggregation

        • Inheritance

        • Polymorphism

        • OOP Summary

        • Setting up Your Training Environment

          • Getting the Tools You Need

          • Using the Firebug Console

          • Summary

          • Chapter 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

Tài liệu cùng người dùng

Tài liệu liên quan