Get Programming with JavaScript
eBook - ePub

Get Programming with JavaScript

  1. 432 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Get Programming with JavaScript

About this book

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 more
  • Think like a coder and design your own programs
  • Create a text-based adventure game
  • Enhance web pages with JavaScript
  • Run your programs in a web browser
  • Four 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 CONSOLE

  • Programming, JavaScript, and JS Bin
  • Variables: storing data in your program
  • Objects: grouping your data
  • Functions: code on demand
  • Arguments: passing data to functions
  • Return values: getting data from functions
  • Object arguments: functions working with objects
  • Arrays: putting data into lists
  • Constructors: building objects with functions
  • Bracket notation: flexible property names

PART 2 ORGANIZING YOUR PROGRAMS

  • Scope: hiding information
  • Conditions: choosing code to run
  • Modules: breaking a program into pieces
  • Models: working with data
  • Views: displaying data
  • Controllers: linking models and views

PART 3 JAVASCRIPT IN THE BROWSER

  • HTML: building web pages
  • Controls: getting user input
  • Templates: filling placeholders with data
  • XHR: loading data
  • Conclusion: get programming with JavaScript

BONUS ONLINE CHAPTERS

  • Node: running JavaScript outside the browser
  • Express: building an API
  • Polling: repeating requests with XHR
  • Socket.IO: real-time messaging

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Get Programming with JavaScript by John Larsen in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Copyright
  2. Brief Table of Contents
  3. Table of Contents
  4. Foreword
  5. Preface
  6. Acknowledgments
  7. About this Book
  8. Part 1. Core concepts on the console
  9. Part 2. Organizing your programs
  10. Part 3. JavaScript in the browser
  11. Appendix. The Crypt: a running example
  12. Appendix. The Crypt: a running example
  13. Index
  14. List of Figures
  15. List of Tables
  16. List of Listings