Chapter 1. What Is JavaScript?

After completing this chapter, you will be able to

  • Understand JavaScript’s role in a webpage

  • Create a simple webpage

  • Create a JavaScript program

WELCOME TO THE WORLD of JavaScript programming. This book provides an introduction to JavaScript programming both for the web and for Microsoft Windows 8. Like other books on JavaScript programming, this book shows the basics of how to create a program in JavaScript. However, unlike other introductory books on JavaScript, this book shows not only how something works but also why it works. If you’re looking merely to copy and paste JavaScript code into a webpage there are plenty of tutorials on the web to help solve those specific problems.

Beyond the basics of how and why things ...

Get Microsoft® Start Here!™ Learn JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.