Begin to Code with JavaScript

Book description

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
      1. What is JavaScript?
      2. Our first brush with JavaScript
      3. Tools
      4. What you have learned
    2. 2. Hypertext Markup Language (HTML)
      1. HTML and the World Wide Web
      2. What is HTML?
      3. Making active web pages
      4. Egg timer
      5. An image display program
      6. What you have learned
    3. 3. Cascading Style Sheets (CSS)
      1. Putting on the style
      2. Cascading styles
      3. What you have learned
  10. Part 2: Coding with JavaScript
    1. 4. Working with data
      1. Computers as data processors
      2. Data and information
      3. Variables in programs
      4. Working with text
      5. Making applications
      6. Global and local variables
      7. What you have learned
    2. 5. Making decisions in programs
      1. Boolean thinking
      2. The if construction
      3. Use decisions to make an application
      4. What you have learned
    3. 6. Repeating actions in programs
      1. App development
      2. Building web pages from code
      3. What you have learned
    4. 7. Creating functions
      1. What makes a function?
      2. What you have learned
    5. 8. Storing data
      1. Collections of data
      2. What you have learned
    6. 9. Objects
      1. Make a tiny contacts app
      2. Use JSON to encode object data
      3. Use property accessors
      4. Use a data schema
      5. Improving the user interface
      6. What you have learned
  11. Part 3: Useful JavaScript
    1. 10. Advanced JavaScript
      1. Manage errors with exceptions
      2. Class design
      3. What you have learned
    2. 11. Creating applications
      1. Data analysis
      2. Read the weather
      3. Node.js
      4. Deploying a Node.js server
      5. What you have learned
    3. 12. Creating games
      1. Use the HTML Canvas
      2. Animate images
      3. Control gameplay
      4. Create game objects
      5. Complete the game
      6. What you have learned
  12. Index
  13. Code Snippets

Product information

  • Title: Begin to Code with JavaScript
  • Author(s): Rob Miles
  • Release date: August 2021
  • Publisher(s): Microsoft Press
  • ISBN: 9780136870661