Get Programming with JavaScript

Summary Get Programming with JavaScript is a hands-on introduction to programming for readers who have never programmed. You'll be writing your own web apps, games, and programs in no time! Foreword by Remy Sharp. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Book Are you ready to start writing your own web apps, games, and programs? You’re in the right place! Get Programming with JavaScript is a hands-on introduction to programming for readers who have never written a line of code. Since you’re just getting started, this friendly book offers you lots of examples backed by careful explanations. As you go along, you’ll find exercises to check your understanding and plenty of opportunities to practice your new skills. You don’t need any­thing special to follow the examples—just the text editor and web browser already installed on your computer. We even give you links to working online code so you can see how everything should look live on your screen. What’s Inside All the basics—objects, functions, responding to users, and moreThink like a coder and design your own programsCreate a text-based adventure gameEnhance web pages with JavaScriptRun your programs in a web browserFour bonus chapters available online About the Reader No experience required! All you need is a web browser and an internet connection. About the Author John Larsen is a mathematics and computing teacher with an interest in educational research. He has an MA in mathematics and an MSc in information technology. He started programming in 1982, writing simple programs for teaching mathematics in 1993, building websites in 2001, and developing data-driven web-based applications for education in 2006. Table of Contents PART 1 CORE CONCEPTS ON THE CONSOLEProgramming, JavaScript, and JS BinVariables: storing data in your programObjects: grouping your dataFunctions: code on demandArguments: passing data to functionsReturn values: getting data from functionsObject arguments: functions working with objectsArrays: putting data into listsConstructors: building objects with functionsBracket notation: flexible property namesPART 2 ORGANIZING YOUR PROGRAMSScope: hiding informationConditions: choosing code to runModules: breaking a program into piecesModels: working with dataViews: displaying dataControllers: linking models and viewsPART 3 JAVASCRIPT IN THE BROWSERHTML: building web pagesControls: getting user inputTemplates: filling placeholders with dataXHR: loading dataConclusion: get programming with JavaScriptBONUS ONLINE CHAPTERSNode: running JavaScript outside the browserExpress: building an APIPolling: repeating requests with XHRSocket.IO: real-time messaging

Author: John Larsen

Learn more