JavaScript Patterns Quotes

Rate this book
Clear rating
JavaScript Patterns: Build Better Applications with Coding and Design Patterns JavaScript Patterns: Build Better Applications with Coding and Design Patterns by Stoyan Stefanov
1,630 ratings, 4.17 average rating, 73 reviews
Open Preview
JavaScript Patterns Quotes Showing 1-2 of 2
“In JavaScript there’s no curly braces local scope; in other words, blocks don’t create scope. There’s only function scope.”
Stoyan Stefanov, JavaScript Patterns: Build Better Applications with Coding and Design Patterns
“you have the freedom to return any object in your constructors, as long as it’s an object. Attempting to return something that’s not an object (like a string or a boolean false, for example) will not cause an error but will simply be ignored, and the object referenced by this will be returned instead.”
Stoyan Stefanov, JavaScript Patterns: Build Better Applications with Coding and Design Patterns