Become a JavaScript programmerand have fun doing it!

Start writing software that solves real problems, even if you have absolutely no programming experience! This friendly, easy, full-color book puts you in total control of your own learning, empowering you to build unique and useful programs. Microsoft has completely reinvented the beginning programmers tutorial, reflecting deep research into how todays beginners learn, and why other books fall short. Begin to Code with JavaScript is packed with innovations, from its JavaScript code samples you can interact with straight from your browser to its Make Something Happen projects. Whether youre a total beginner or youve tried before, this guide will put the power, excitement, and fun of programming where it belongs: in your hands! Easy, friendly, and youre in control!

Learn how to

  • Get and use the powerful free Visual Studio Code tool for JavaScript programming

  • Explore the JavaScript environment and see what happens when programs run

  • Learn key concepts from example programs, and use them to jumpstart your own

  • Create web pages containing JavaScript programs using HTML and CSS

  • Write complete JavaScript programs that run inside browsers

  • Master JavaScript features for storing and processing data

  • Break large programs into small, flexible components

  • Use software objects to create custom data types to solve specific problems

  • Design more attractive and usable applications

  • Make your programs more secure and reliable

  • Use libraries and frameworks to create powerful software more quickly

  • Get started with the essentials of interactive game development

About This Book

  • For absolute beginners whove never written a line of code

  • For anyone whos been frustrated with other beginning programming books or courses

  • For people whove started out with other languages and now want to learn JavaScript

Table of Contents

  1. Cover Page
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. About the author
  6. Contents at a glance
  7. Contents
  8. Introduction
    1. How this book fits together
    2. How you will learn
    3. What you will need
    5. Acknowledgments
    6. Errata, updates, and book support
    7. Stay in touch
  9. Part 1: The world of JavaScript
    1. 1. Running JavaScript
    2. What is JavaScript?
    3. Our first brush with JavaScript
    4. Tools
    5. What you have learned
    6. 2. Hypertext Markup Language (HTML)
    7. HTML and the World Wide Web
    8. What is HTML?
    9. Making active web pages
    10. Egg timer
    11. An image display program
    12. What you have learned
    13. 3. Cascading Style Sheets (CSS)
    14. Putting on the style
    15. Cascading styles
    16. What you have learned
  10. Part 2: Coding with JavaScript
    1. 4. Working with data
    2. Computers as data processors
    3. Data and information
    4. Variables in programs
    5. Working with text
    6. Making applications
    7. Global and local variables
    8. What you have learned
    9. 5. Making decisions in programs
    10. Boolean thinking
    11. The if construction
    12. Use decisions to make an application
    13. What you have learned
    14. 6. Repeating actions in programs
    15. App development
    16. Building web pages from code
    17. What you have learned
    18. 7. Creating functions
    19. What makes a function?
    20. What you have learned
    21. 8. Storing data
    22. Collections of data
    23. What you have learned
    24. 9. Objects
    25. Make a tiny contacts app
    26. Use JSON to encode object data
    27. Use property accessors
    28. Use a data schema
    29. Improving the user interface
    30. What you have learned
  11. Part 3: Useful JavaScript
    1. 10. Advanced JavaScript
    2. Manage errors with exceptions
    3. Class design
    4. What you have learned
    5. 11. Creating applications
    6. Data analysis
    7. Read the weather
    8. Node.js
    9. Deploying a Node.js server
    10. What you have learned
    11. 12. Creating games
    12. Use the HTML Canvas
    13. Animate images
    14. Control gameplay
    15. Create game objects
    16. Complete the game
    17. What you have learned
  12. Index
  13. Code Snippets