Tiefpreis
CHF68.80
Sofort lieferbar
Autorentext
Eric Freeman is described by Head First series co-creator Kathy Sierra as "one of those rare individuals fluent in the language, practice, and culture of multiple domains from hipster hacker, to corporate VP, engineer, think tank." Professionally, Eric recently ended nearly a decade as a media company executive, having held the position of CTO of Disney Online & Disney.com at The Walt Disney Company. Eric is now devoting his time to WickedlySmart.com and lives with his wife and young daughter on Bainbridge Island. He holds a Ph.D. in Computer Science from Yale University.
Elisabeth Robson is co-founder of Wickedly Smart, an education company devoted to helping customers gain mastery in web technologies. She's co-author of three bestselling books, Head First Design Patterns, Head First HTML with CSS & XHTML and Head First HTML5 Programming.
Klappentext
What will you learn from this book?
This brain-friendly guide teaches you everything from JavaScript language fundamentals to advanced topics, including objects, functions, and the browser’s document object model. You won’t just be reading—you’ll be playing games, solving puzzles, pondering mysteries, and interacting with JavaScript in ways you never imagined. And you’ll write real code, lots of it, so you can start building your own web applications. Prepare to open your mind as you learn (and nail) key topics including:
What’s so special about this book?
We think your time is too valuable to waste struggling with new concepts. Using the latest research in cognitive science and learning theory to craft a multi-sensory learning experience, Head First JavaScript Programming uses a visually rich format designed for the way your brain works, not a text-heavy approach that puts you to sleep. This book replaces Head First JavaScript, which is now out of print.
Zusammenfassung
This brain-friendly guide teaches you everything from JavaScript language fundamentals to advanced topics, including objects, functions, and the browser's document object model. You won't just be reading you'll be playing games, solving puzzles, pondering mysteries, and interacting with JavaScript in ways you never imagined.
Inhalt
; Praise for Head First JavaScript Programming; Praise for other books by Eric T. Freeman and Elisabeth Robson; Authors of Head First JavaScript Programming; How to Use This Book: Intro; Who is this book for?; We know what you're thinking.; Metacognition: thinking about thinking; Here's what WE did:; Here's what YOU can do to bend your brain into submission; Read Me; Tech Reviewers; AcknowledgmentsThe large number of acknowledgments is because we're testing the theory that everyone mentioned in a book acknowledgment will buy at least one copy, probably more, what with relatives and everything. If you'd like to be in the acknowledgment of our next book, and you have a large family, write to us.; Chapter 1: Getting your feet wet; 1.1 The way JavaScript works; 1.2 How you're going to write JavaScript; 1.3 How to get JavaScript into your page; 1.4 JavaScript, you've come a long way baby...; 1.5 How to make a statement; 1.6 Variables and values; 1.7 Back away from that keyboard!; 1.8 Express yourself; 1.9 Doing things more than once; 1.10 How the while loop works; 1.11 Making decisions with JavaScript; 1.12 And, when you need to make LOTS of decisions; 1.13 Reach out and communicate with your user; 1.14 A closer look at console.log; 1.15 Opening the console; 1.16 Coding a Serious JavaScript Application; 1.17 How do I add code to my page? (let me count the ways); 1.18 We're going to have to separate you two; Chapter 2: Going further; 2.1 Let's build a Battleship game; 2.2 Our first attempt...; 2.3 First, a high-level design; 2.4 A few more details...; 2.5 Working through the Pseudocode; 2.6 Oh, before we go any further, don't forget the HTML!; 2.7 Writing the Simple Battleship code; 2.8 Now let's write the game logic; 2.9 Step One: setting up the loop, getting some input; 2.10 How prompt works; 2.11 Checking the user's guess; 2.12 So, do we have a hit?; 2.13 Adding the hit detection code; 2.14 Hey, you sank my battleship!; 2.15 Provide some post-game analysis; 2.16 And that completes the logic!; 2.17 Doing a little Quality Assurance; 2.18 Can we talk about your verbosity...; 2.19 Finishing the Simple Battleship game; 2.20 How to assign random locations; 2.21 The world-famous recipe for generating a random number; 2.22 Back to do a little more QA; 2.23 Congrats on your first true JavaScript program, and a short word about reusing code; Chapter 3: Getting functional; 3.1 What's wrong with the code anyway?; 3.2 By the way, did we happen to mention FUNCTIONS?; 3.3 Okay, but how does it actually work?; 3.4 What can you pass to a function?; 3.5 JavaScript is pass-by-value.; 3.6 Weird Functions; 3.7 Functions can return things too; 3.8 Tracing through a function with a return statement; 3.9 Global and local variables; 3.10 Knowing the scope of your local and global variables; 3.11 The short lives of variables; 3.12 Don't forget to declare your locals!; Chapter 4: Arrays; 4.1 Can you help Bubbles-R-Us?; 4.2 How to represent multiple values in JavaScript; 4.3 How arrays work; 4.4 How to access an array item; 4.5 Updating a value in the array; 4.6 How big is that array anyway?; 4.7 The Phrase-O-Matic; 4.8 Meanwhile, back at Bubbles-R-Us...; 4.9 How to iterate over an array; 4.10 But wait, there's a better way to iterate over an array; 4.11 It's that time again.... Can we talk about your verbosity?; 4.12 Redoing the for loop with the post-increment operator; 4.13 Quick test drive; 4.14 Creating an array from scratch (and adding to it); 4.15 And the winners are...; 4.16 A quick survey of the code...; 4.17 Writing the printAndGetHighScore function; 4.18 Refactoring the code using printAndGetHighScore; 4.19 Putting it all together...; Chapter 5: A trip to Objectville; 5.1 Did someone say "Objects"?!; 5.2 Thinking about properties...; 5.3 How to create an object; 5.4 What is Object-Oriented Anyway?; 5.5 How properties work; 5.6 How does a variable hold an object? Inquiring minds want to know...; 5.7 Comparing primitives and objects; 5.8 Doing even more with objects...; 5.9 Stepping through pre-qualification; 5.10 Let's talk a little more about passing objects to functions; 5.11 Oh Behave! Or, how to add behavior to your objects; 5.12 Improving the drive method; 5.13 Why doesn't the drive method know about the started property?; 5.14 How this works; 5.15 How behavior affects state... Adding some Gas-o-line; 5.16 Now let's affect the behavior with the state; 5.17 Congrats on your first objects!; 5.18 Guess what? There are objects all around you! (and they'll make your life easier); Chapter 6: Getting to know the DOM; 6.1 In our last chapter, we left you with a little challenge. The "crack the code challenge."; 6.2 So what does the code do?; 6.3 How JavaScript really interacts with your page; 6.4 How to bake your very own DOM; 6.5 A first taste of the DOM; 6.6 Getting an element with getElementById; 6.7 What, exactly, am I getting from the DOM?; 6.8 Finding your inner HTML; 6.9 What happens when you change the DOM; 6.10 A test drive around the planets; 6.11 Don't even think about running my code until the page is fully loaded!; 6.12 You say "event handler," I say "callback"; 6.13 How to set an attribute with setAttribute; 6.14 More fun with attributes! (you can GET attributes too); 6.15 So what else is a DOM good for anyway?; Chapter 7: Serious types; 7.1 The truth is out there...; 7.2 Watch out, you might bump into undefined…