Movatterモバイル変換


[0]ホーム

URL:


Packt
Search iconClose icon
Search icon CANCEL
Subscription
0
Cart icon
Your Cart(0 item)
Close icon
You have no products in your basket yet
Save more on your purchases!discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Profile icon
Account
Close icon

Change country

Modal Close icon
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timerSALE ENDS IN
0Days
:
00Hours
:
00Minutes
:
00Seconds
Home> Programming> Object Oriented Programming> Object-Oriented JavaScript - Second Edition
Object-Oriented JavaScript - Second Edition
Object-Oriented JavaScript - Second Edition

Object-Oriented JavaScript - Second Edition: If you've limited or no experience with JavaScript, this book will put you on the road to being an expert. A wonderfully compiled introduction to objects in JavaScript, it teaches through examples and practical play. , Second Edition

Arrow left icon
Profile Icon Stoyan STEFANOV
Arrow right icon
€8.98€32.99
Full star iconFull star iconFull star iconFull star iconHalf star icon4.6(11 Ratings)
eBookJul 2013382 pages2nd Edition
eBook
€8.98 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.98 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature iconInstant access to your Digital eBook purchase
Product feature icon Download this book inEPUB andPDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature iconDRM FREE - Read whenever, wherever and however you want

Contact Details

Modal Close icon
Payment Processing...
tickCompleted

Billing Address

Table of content iconView table of contentsPreview book icon Preview Book

Object-Oriented JavaScript - Second Edition

Chapter 2. Primitive Data Types, Arrays, Loops, and Conditions

Before diving into the object-oriented features of JavaScript, let's first take a look at some of the basics. This chapter walks you through the following:

  • The primitive data types in JavaScript, such as strings and numbers
  • Arrays
  • Common operators, such as+,-,delete, andtypeof
  • Flow control statements, such as loops and if-else conditions

Variables

Variables are used to store data; they are placeholders for concrete values. When writing programs, it's convenient to use variables instead of the actual data, as it's much easier to writepi instead of3.141592653589793, especially when it happens several times inside your program. The data stored in a variable can be changed after it was initially assigned, hence the name "variable". You can also use variables to store data that is unknown to you while you write the code, such as the result of a later operation.

Using a variable requires two steps. You need to:

  • Declare the variable
  • Initialize it, that is, give it a value

To declare a variable, you use thevar statement, like this:

var a;var thisIsAVariable; var _and_this_too; var mix12three;

For the names of the variables, you can use any combination of letters, numbers, the underscore character, and the dollar sign. However, you can't start with a number, which means that this is invalid:

var 2three4five...

Operators

Operators take one or two values (or variables), perform an operation, and return a value. Let's check out a simple example of using an operator, just to clarify the terminology:

> 1 + 2;3

In this code:

  • + is the operator
  • The operation is addition
  • The input values are1 and2 (the input values are also called operands)
  • The result value is3
  • The whole thing is called an expression

Instead of using the values1 and2 directly in the expression, you can use variables. You can also use a variable to store the result of the operation, as the following example demonstrates:

> var a = 1;> var b = 2;> a + 1;2> b + 2;4> a + b;3> var c = a + b;> c;3

The following table lists the basic arithmetic operators:

Operator symbol

Operation

Example

+

Addition

> 1 + 2;3

-

Subtraction

> 99.99 – 11;88.99

*

Multiplication

> 2 * 3;6

/

Division

> 6 / 4;1.5

%

Modulo, the remainder of a division

>...

Primitive data types

Any value that youuse is of a certain type. In JavaScript, there are just a few primitive data types:

  1. Number: This includes floating point numbers as well as integers. For example, these values are all numbers:1,100,3.14.
  2. String: These consist of any number of characters, for example"a","one", and"one 2 three".
  3. Boolean: This can be eithertrue orfalse.
  4. Undefined: When you try to access a variable that doesn't exist, you get the special valueundefined. The same happens when you declare a variable without assigning a value to it yet. JavaScript initializes the variable behind the scenes with the valueundefined. The undefined data type can only have one value – the special valueundefined.
  5. Null: This is another special data type that can have only one value, namely thenull value. It means no value, an empty value, or nothing. The difference withundefined is that if a variable has a valuenull, it's still defined, it...

Strings

A string is a sequence of characters used to represent text. In JavaScript, any value placed between single or doublequotes is considered a string. This means that1 is a number, but"1" is a string. When used with strings,typeof returns the string"string":

> var s = "some characters";> typeof s;"string"> var s = 'some characters and numbers 123 5.87';> typeof s;"string"

Here's an example of a number used in the string context:

> var s = '1';> typeof s;"string"

If you put nothing in quotes, it's still a string (an empty string):

> var s = ""; typeof s;"string"

As you already know, when you use the plus sign with two numbers, this is the arithmetic addition operation. However, if you use the plus sign with strings, this is a string concatenation operation, and it returns the two strings glued together:

> var s1 = "web"; > var s2...

Booleans

There are only twovalues that belong to the Boolean data type: the valuestrue andfalse, used without quotes:

> var b = true; > typeof b;"boolean"> var b = false; > typeof b;"boolean"

If you quotetrue orfalse, they become strings:

> var b = "true"; > typeof b;"string"

Variables


Variables are used to store data; they are placeholders for concrete values. When writing programs, it's convenient to use variables instead of the actual data, as it's much easier to writepi instead of3.141592653589793, especially when it happens several times inside your program. The data stored in a variable can be changed after it was initially assigned, hence the name "variable". You can also use variables to store data that is unknown to you while you write the code, such as the result of a later operation.

Using a variable requires two steps. You need to:

  • Declare the variable

  • Initialize it, that is, give it a value

To declare a variable, you use thevar statement, like this:

var a;var thisIsAVariable; var _and_this_too; var mix12three;

For the names of the variables, you can use any combination of letters, numbers, the underscore character, and the dollar sign. However, you can't start with a number, which means that this is invalid:

var 2three4five;

To initialize avariable...

Operators


Operators take one or two values (or variables), perform an operation, and return a value. Let's check out a simple example of using an operator, just to clarify the terminology:

> 1 + 2;3

In this code:

  • + is the operator

  • The operation is addition

  • The input values are1 and2 (the input values are also called operands)

  • The result value is3

  • The whole thing is called an expression

Instead of using the values1 and2 directly in the expression, you can use variables. You can also use a variable to store the result of the operation, as the following example demonstrates:

> var a = 1;> var b = 2;> a + 1;2> b + 2;4> a + b;3> var c = a + b;> c;3

The following table lists the basic arithmetic operators:

Operator symbol

Operation

Example

+

Addition

> 1 + 2;3

-

Subtraction

> 99.99 – 11;88.99

*

Multiplication

> 2 * 3;6

/

Division

> 6 / 4;1.5

%

Modulo, the remainder of a division

> 6 % 3;0&gt...

Primitive data types


Any value that youuse is of a certain type. In JavaScript, there are just a few primitive data types:

  1. Number: This includes floating point numbers as well as integers. For example, these values are all numbers:1,100,3.14.

  2. String: These consist of any number of characters, for example"a","one", and"one 2 three".

  3. Boolean: This can be eithertrue orfalse.

  4. Undefined: When you try to access a variable that doesn't exist, you get the special valueundefined. The same happens when you declare a variable without assigning a value to it yet. JavaScript initializes the variable behind the scenes with the valueundefined. The undefined data type can only have one value – the special valueundefined.

  5. Null: This is another special data type that can have only one value, namely thenull value. It means no value, an empty value, or nothing. The difference withundefined is that if a variable has a valuenull, it's still defined, it just so happens that its value is nothing. You...

Strings


A string is a sequence of characters used to represent text. In JavaScript, any value placed between single or doublequotes is considered a string. This means that1 is a number, but"1" is a string. When used with strings,typeof returns the string"string":

> var s = "some characters";> typeof s;"string"> var s = 'some characters and numbers 123 5.87';> typeof s;"string"

Here's an example of a number used in the string context:

> var s = '1';> typeof s;"string"

If you put nothing in quotes, it's still a string (an empty string):

> var s = ""; typeof s;"string"

As you already know, when you use the plus sign with two numbers, this is the arithmetic addition operation. However, if you use the plus sign with strings, this is a string concatenation operation, and it returns the two strings glued together:

> var s1 = "web"; > var s2 = "site"; > var s = s1 + s2; > s;"website"> typeof s;"string"

The dual purpose of the+ operator is a source...

Booleans


There are only twovalues that belong to the Boolean data type: the valuestrue andfalse, used without quotes:

> var b = true; > typeof b;"boolean"> var b = false; > typeof b;"boolean"

If you quotetrue orfalse, they become strings:

> var b = "true"; > typeof b;"string"

Logical operators


There are three operators,called logical operators, that work with Boolean values. These are:

  • ! – logical NOT (negation)

  • && – logical AND

  • || – logical OR

You know that when something is not true, it must be false. Here's how this is expressed using JavaScript and the logical! operator:

> var b = !true;> b;false

If you use the logical NOT twice, you get the original value:

> var b = !!true;> b;true

If you use a logical operator on a non-Boolean value, the value is converted to Boolean behind the scenes:

> var b = "one";> !b;false

In the precedingcase, the string value"one" is converted to a Boolean,true, and then negated. The result of negatingtrue isfalse. In the next example, there's a double negation, so the result istrue:

> var b = "one";> !!b;true

You can convert any value to its Boolean equivalent using a double negation. Understanding how any value converts to a Boolean is important. Most values convert totrue with the exception...

Comparison


There's another set of operators that all return a Boolean value as a result of the operation. These are the comparison operators. The following table lists them together with example uses:

Operator symbol

Description

Example

==

Equality comparison: Returns true when both operands are equal. The operands are converted to the same type before being compared. Also called loose comparison.

> 1 == 1;true

> 1 == 2;false

> 1 == '1';true

===

Equality and type comparison: Returnstrue if both operands are equal and of the same type. It's better and safer to compare this way because there's no behind-the-scenes type conversions. It is also called strict comparison.

> 1 === '1';false

> 1 === 1;true

!=

Non-equality comparison: Returnstrue if the operands are not equal to each other (after a type conversion).

> 1 != 1;false

> 1 != '1';false

> 1 != '2';true

!==

Non-equality comparison without type conversion: Returns...

Primitive data types recap


Let's quickly summarizesome of the main points discussed so far:

  • There are fiveprimitive data types in #"bullet">

  • Number

  • String

  • Boolean

  • Undefined

  • Null

  • Everything that is not a primitive data type is an object

  • The primitive number data type can store positive and negative integers or floats, hexadecimal numbers, octal numbers, exponents, and the special numbersNaN,Infinity, and–Infinity

  • The string data type contains characters in quotes

  • The only values of the Boolean data type aretrue andfalse

  • The only value of the null data type is the valuenull

  • The only value of the undefined data type is the valueundefined

  • All values becometrue when converted to a Boolean, with the exception of the six falsy values:

    • ""

    • null

    • undefined

    • 0

    • NaN

    • false

  • Arrays


    Now that you know about the basic primitive data types in JavaScript, it's time to move to a more powerfuldata structure—the array.

    So, what is an array? It's simply a list (a sequence) of values. Instead of using one variable to store one value, you can use one array variable to store any number of values as elements of the array.

    To declare a variable that contains an empty array, you use square brackets with nothing between them:

    > var a = [];

    To define an array that has three elements, you do this:

    > var a = [1, 2, 3];

    When you simply type the name of the array in the console, you get the contents of your array:

    > a;[1, 2, 3]

    Now thequestion is how to access the values stored in these array elements. The elements contained in an array are indexed with consecutive numbers starting from zero. The first element has index (or position) 0, the second has index 1, and so on. Here's the three-element array from the previous example:

    Index

    Value

    0

    1

    1

    2

    2

    3

    To...

    Conditions and loops


    Conditions provide a simple but powerful way to control the flow of code execution.Loops allow you to perform repetitive operations with less code. Let's take a look at:

    • if conditions

    • switch statements

    • while,do-while,for, andfor-in loops

    Note

    The examples in the following sections require you to switch to the multiline Firebug console. Or, if you use the WebKit console, useShift +Enter instead ofEnter to add a new line.

    The if condition

    Here's a simple exampleof anif condition:

    var result = '', a = 3;if (a > 2) {  result = 'a is greater than 2';}

    The parts of theif condition are:

    • Theif statement

    • A condition in parentheses—"isa greater than 2?"

    • A block of code wrapped in{} that executes if the condition is satisfied

    The condition (the part in parentheses) always returns a Boolean value, and may also contain the following:

    • A logical operation:!,&&, or||

    • A comparison, such as===,!=,>, and so on

    • Any value or variable that can be converted to a Boolean...

    Code blocks


    In the preceding examples, you saw the use of code blocks. Let's take a moment to clarify what a block of code is,because you use blocks extensively when constructing conditions and loops.

    A block of code consists of zero or more expressions enclosed in curly brackets:

    {  var a = 1;  var b = 3;}

    You can nest blocks within each other indefinitely:

    {  var a = 1;  var b = 3;  var c, d;  {    c = a + b;    {      d = a - b;    }  }}

    Tip

    Best practice tips

    • Use end-of-line semicolons, as discussed previously in the chapter. Although the semicolon is optional when you have only one expression per line, it's good to develop the habit of using them. For best readability, the individual expressionsinside a block should be placed one per line and separated by semicolons.

    • Indent any code placed within curly brackets. Some programmers like one tab indentation, some use four spaces, and some use two spaces. It really doesn't matter, as long as you're consistent. In the preceding example...

    Left arrow icon

    Page1 of 17

    Right arrow icon

    Key benefits

    • Think in JavaScript
    • Make object-oriented programming accessible and understandable to web developers
    • Apply design patterns to solve JavaScript coding problems
    • Learn coding patterns that unleash the unique power of the language
    • Write better and more maintainable JavaScript code
    • Type in and play around with examples that can be used in your own scripts

    Description

    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 environmentsMany 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.

    Who is this book for?

    For new to intermediate JavaScript developer who wants to prepare themselves for web development problems solved by smart JavaScript!

    What you will learn

    • The basics of object-oriented programming, and how to apply it in the JavaScript environment
    • How to set up and use your training environment (Firebug)
    • In depth discussion of data types, operators, and flow control statements in JavaScript
    • In depth discussion of functions, function usage patterns, and variable scope
    • Understand how prototypes work
    • Reuse code with common patterns for inheritance
    • Make your programs cleaner, faster and compatible with other programs and libraries
    • Use object-oriented JavaScript for improving script performance
    • Achieve missing object-oriented features in JavaScript

    Product Details

    Country selected
    Publication date, Length, Edition, Language, ISBN-13
    Publication date :Jul 26, 2013
    Length:382 pages
    Edition :2nd
    Language :English
    ISBN-13 :9781849693134
    Category :
    Languages :
    Concepts :

    What do you get with eBook?

    Product feature iconInstant access to your Digital eBook purchase
    Product feature icon Download this book inEPUB andPDF formats
    Product feature icon Access this title in our online reader with advanced features
    Product feature iconDRM FREE - Read whenever, wherever and however you want

    Contact Details

    Modal Close icon
    Payment Processing...
    tickCompleted

    Billing Address

    Product Details

    Publication date :Jul 26, 2013
    Length:382 pages
    Edition :2nd
    Language :English
    ISBN-13 :9781849693134
    Category :
    Programming
    Languages :
    JavaScript
    Concepts :
    Object Oriented Programming

    Packt Subscriptions

    See our plans and pricing
    Modal Close icon
    €18.99billed monthly
    Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
    Feature tick iconConstantly refreshed with 50+ new titles a month
    Feature tick iconExclusive Early access to books as they're written
    Feature tick iconSolve problems while you work with advanced search and reference features
    Feature tick iconOffline reading on the mobile app
    Feature tick iconSimple pricing, no contract
    €189.99billed annually
    Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
    Feature tick iconConstantly refreshed with 50+ new titles a month
    Feature tick iconExclusive Early access to books as they're written
    Feature tick iconSolve problems while you work with advanced search and reference features
    Feature tick iconOffline reading on the mobile app
    Feature tick iconChoose a DRM-free eBook or Video every month to keep
    Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
    Feature tick iconExclusive print discounts
    €264.99billed in 18 months
    Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
    Feature tick iconConstantly refreshed with 50+ new titles a month
    Feature tick iconExclusive Early access to books as they're written
    Feature tick iconSolve problems while you work with advanced search and reference features
    Feature tick iconOffline reading on the mobile app
    Feature tick iconChoose a DRM-free eBook or Video every month to keep
    Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
    Feature tick iconExclusive print discounts

    Frequently bought together


    Object-Oriented JavaScript - Second Edition
    Object-Oriented JavaScript - Second Edition
    Read more
    Jul 2013382 pages
    Full star icon4.6 (11)
    eBook
    eBook
    €8.98€32.99
    €41.99
    Learning jQuery - Fourth Edition
    Learning jQuery - Fourth Edition
    Read more
    Jun 2013444 pages
    Full star icon4.2 (20)
    eBook
    eBook
    €8.98€25.99
    €32.99
    JavaScript and JSON Essentials
    JavaScript and JSON Essentials
    Read more
    Oct 2013120 pages
    Full star icon3.1 (15)
    eBook
    eBook
    €8.98€19.99
    €24.99
    Stars icon
    Total99.97
    Object-Oriented JavaScript - Second Edition
    €41.99
    Learning jQuery - Fourth Edition
    €32.99
    JavaScript and JSON Essentials
    €24.99
    Total99.97Stars icon
    Buy 2+ to unlock€6.99 prices - master what's next.
    SHOP NOW

    Table of Contents

    13 Chapters
    1. Object-oriented JavaScriptChevron down iconChevron up icon
    1. Object-oriented JavaScript
    A bit of history
    ECMAScript 5
    Object-oriented programming
    OOP summary
    Setting up your training environment
    Summary
    2. Primitive Data Types, Arrays, Loops, and ConditionsChevron down iconChevron up icon
    2. Primitive Data Types, Arrays, Loops, and Conditions
    Variables
    Operators
    Primitive data types
    Strings
    Booleans
    Logical operators
    Comparison
    Primitive data types recap
    Arrays
    Conditions and loops
    Code blocks
    Switch
    Loops
    Comments
    Summary
    Exercises
    3. FunctionsChevron down iconChevron up icon
    3. Functions
    What is a function?
    Scope of variables
    Functions are data
    Closures
    Summary
    Exercises
    4. ObjectsChevron down iconChevron up icon
    4. Objects
    From arrays to objects
    Built-in objects
    Summary
    Exercises
    5. PrototypeChevron down iconChevron up icon
    5. Prototype
    The prototype property
    Using the prototype's methods and properties
    Augmenting built-in objects
    Summary
    Exercises
    6. InheritanceChevron down iconChevron up icon
    6. Inheritance
    Prototype chaining
    Inheriting the prototype only
    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
    Parasitic inheritance
    Borrowing a constructor
    Summary
    Case study – drawing shapes
    Exercises
    7. The Browser EnvironmentChevron down iconChevron up icon
    7. The Browser Environment
    Including JavaScript in an HTML page
    BOM and DOM – an overview
    BOM
    DOM
    Events
    XMLHttpRequest
    Summary
    Exercises
    8. Coding and Design PatternsChevron down iconChevron up icon
    8. Coding and Design Patterns
    Coding patterns
    Design patterns
    Summary
    A. Reserved WordsChevron down iconChevron up icon
    A. Reserved Words
    Keywords
    Future reserved words
    Previously reserved words
    B. Built-in FunctionsChevron down iconChevron up icon
    B. Built-in Functions
    C. Built-in ObjectsChevron down iconChevron up icon
    C. Built-in Objects
    Object
    Array
    Function
    Boolean
    Number
    String
    Date
    Math
    RegExp
    Error objects
    JSON
    D. Regular ExpressionsChevron down iconChevron up icon
    D. Regular Expressions
    IndexChevron down iconChevron up icon
    Index

    Recommendations for you

    Left arrow icon
    Debunking C++ Myths
    Debunking C++ Myths
    Read more
    Dec 2024226 pages
    Full star icon5 (1)
    eBook
    eBook
    €8.98€23.99
    €29.99
    Go Recipes for Developers
    Go Recipes for Developers
    Read more
    Dec 2024350 pages
    eBook
    eBook
    €8.98€23.99
    €29.99
    50 Algorithms Every Programmer Should Know
    50 Algorithms Every Programmer Should Know
    Read more
    Sep 2023538 pages
    Full star icon4.5 (64)
    eBook
    eBook
    €8.98€29.99
    €37.99
    €37.99
    Asynchronous Programming with C++
    Asynchronous Programming with C++
    Read more
    Nov 2024424 pages
    Full star icon5 (1)
    eBook
    eBook
    €8.98€25.99
    €31.99
    Modern CMake for C++
    Modern CMake for C++
    Read more
    May 2024504 pages
    Full star icon4.7 (13)
    eBook
    eBook
    €8.98€29.99
    €37.99
    Learn Python Programming
    Learn Python Programming
    Read more
    Nov 2024616 pages
    Full star icon3.5 (2)
    eBook
    eBook
    €8.98€23.99
    €29.99
    Learn to Code with Rust
    Learn to Code with Rust
    Read more
    Sep 202557hrs 40mins
    Full star icon5 (1)
    Video
    Video
    €8.98€56.99
    Modern Python Cookbook
    Modern Python Cookbook
    Read more
    Jul 2024818 pages
    Full star icon4.9 (17)
    eBook
    eBook
    €8.98€32.99
    €41.99
    Right arrow icon

    Customer reviews

    Top Reviews
    Rating distribution
    Full star iconFull star iconFull star iconFull star iconHalf star icon4.6
    (11 Ratings)
    5 star63.6%
    4 star36.4%
    3 star0%
    2 star0%
    1 star0%
    Filter icon Filter
    Top Reviews

    Filter reviews by




    Harpinder SandhuMay 23, 2015
    Full star iconFull star iconFull star iconFull star iconFull star icon5
    Its really good book for JavaScript
    Amazon Verified reviewAmazon
    MattFeb 22, 2015
    Full star iconFull star iconFull star iconFull star iconFull star icon5
    this book is gold.I'm back a year later. I still use this book. If you are a developer or aspiring to be one.. do yourself a solid, buy this book and go through all the exercises at the end of the chapters. By that point you should have a nice foundation of JavaScript.
    Amazon Verified reviewAmazon
    Amazon-KundeApr 14, 2015
    Full star iconFull star iconFull star iconFull star iconFull star icon5
    Der Titel beschreibt deutlich, worum es sich in diesem Werk handelt. Das Buch ist verständlich und fachlich solide. Mir hat es und wird es noch weiter helfen, das Konzept der klassenlosen Objekte mit Prototypen und seinen potentiellen Fallstricken besser zu verstehen und in Richtung Beherrschung zu marschieren. Ein gutes Buch mit klarer Kaufempfehlung.
    Amazon Verified reviewAmazon
    Alfred J SpellerJun 07, 2014
    Full star iconFull star iconFull star iconFull star iconFull star icon5
    If you want to take your Javascript skills to the next level this is a great book to start with. The explanations are to the point and short. The content is very rich and keep me wanting to dive in to learn more. For me this wasnt a book that you read just once and move on. I have referred to several chapters and/or concepts over and over to make sure I have a complete understanding. I do think the closure explanation with the image is better described in the 1st edition though.
    Amazon Verified reviewAmazon
    PrometheusJul 02, 2014
    Full star iconFull star iconFull star iconFull star iconFull star icon5
    Great book on the subject.
    Amazon Verified reviewAmazon
    • Arrow left icon Previous
    • 1
    • 2
    • 3
    • Arrow right icon Next

    People who bought this also bought

    Left arrow icon
    50 Algorithms Every Programmer Should Know
    50 Algorithms Every Programmer Should Know
    Read more
    Sep 2023538 pages
    Full star icon4.5 (64)
    eBook
    eBook
    €8.98€29.99
    €37.99
    €37.99
    Event-Driven Architecture in Golang
    Event-Driven Architecture in Golang
    Read more
    Nov 2022384 pages
    Full star icon4.9 (10)
    eBook
    eBook
    €8.98€29.99
    €37.99
    €33.99
    The Python Workshop Second Edition
    The Python Workshop Second Edition
    Read more
    Nov 2022600 pages
    Full star icon4.6 (19)
    eBook
    eBook
    €8.98€31.99
    €38.99
    Template Metaprogramming with C++
    Template Metaprogramming with C++
    Read more
    Aug 2022480 pages
    Full star icon4.6 (13)
    eBook
    eBook
    €8.98€28.99
    €35.99
    Domain-Driven Design with Golang
    Domain-Driven Design with Golang
    Read more
    Dec 2022204 pages
    Full star icon4.4 (18)
    eBook
    eBook
    €8.98€26.99
    €33.99
    Right arrow icon

    About the author

    Profile icon Stoyan STEFANOV
    Stoyan STEFANOV
    LinkedIn iconGithub icon
    Stoyan Stefanov is a Facebook engineer, author, and speaker. He talks regularly about web development topics at conferences, and his blog, www.phpied.com. He also runs a number of other sites, including JSPatterns.com - a site dedicated to exploring JavaScript patterns. Previously at Yahoo!, Stoyan was the architect of YSlow 2.0 and creator of the image optimization tool, Smush.it. A "citizen of the world", Stoyan was born and raised in Bulgaria, but is also a Canadian citizen, currently residing in Los Angeles, California. In his offline moments, he enjoys playing the guitar, taking flying lessons, and spending time at the Santa Monica beaches with his family.
    Read more
    See other products by Stoyan STEFANOV
    Getfree access to Packt library with over 7500+ books and video courses for 7 days!
    Start Free Trial

    FAQs

    How do I buy and download an eBook?Chevron down iconChevron up icon

    Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

    If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

    Please Note: Packt eBooks are non-returnable and non-refundable.

    Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

    • You may make copies of your eBook for your own use onto any machine
    • You may not pass copies of the eBook on to anyone else
    How can I make a purchase on your website?Chevron down iconChevron up icon

    If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

    1. Register on our website using your email address and the password.
    2. Search for the title by name or ISBN using the search option.
    3. Select the title you want to purchase.
    4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
    5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
    Where can I access support around an eBook?Chevron down iconChevron up icon
    • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
    • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
    • To view your account details or to download a new copy of the book go to www.packtpub.com/account
    • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
    What eBook formats do Packt support?Chevron down iconChevron up icon

    Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

    You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

    What are the benefits of eBooks?Chevron down iconChevron up icon
    • You can get the information you need immediately
    • You can easily take them with you on a laptop
    • You can download them an unlimited number of times
    • You can print them out
    • They are copy-paste enabled
    • They are searchable
    • There is no password protection
    • They are lower price than print
    • They save resources and space
    What is an eBook?Chevron down iconChevron up icon

    Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

    When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

    For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.

    Create a Free Account To Continue Reading

    Modal Close icon
    OR
      First name is required.
      Last name is required.

    The Password should contain at least :

    • 8 characters
    • 1 uppercase
    • 1 number
    Notify me about special offers, personalized product recommendations, and learning tips By signing up for the free trial you will receive emails related to this service, you can unsubscribe at any time
    By clicking ‘Create Account’, you are agreeing to ourPrivacy Policy andTerms & Conditions
    Already have an account? SIGN IN

    Sign in to activate your 7-day free access

    Modal Close icon
    OR
    By redeeming the free trial you will receive emails related to this service, you can unsubscribe at any time.

    [8]ページ先頭

    ©2009-2025 Movatter.jp