Introduction:
- I should start this book with an apology—not to you, reader, though I don’t doubt that I’ll owe you at least one by the time we get to the end. I owe JavaScript a number of apologies for the things I said to it during the early years of my career—things strong enough to etch glass.
- This is my not-so-subtle way of saying that JavaScript can be a tricky thing to learn.
- HTML and CSS are tough in their own ways, but we can learn about them piecemeal. They’re simpler in that we type something and it happens: border-radius rounds corners the way we tell it to; a p tag is for paragraphs, full stop.
- When I was just starting out with JavaScript, on the other hand, everything I learned seemed to be the tip of a new and terrifying iceberg—a link in a chain of interconnected con-cepts, each one more complicated than the last—variables and logic and vocabulary and mathematics that I assumed I would never fully understand. When I’d type something, it wouldn’t always mean exactly what it said. If I pasted something into the wrong place, it could anger JavaScript. When I made a mistake, things broke.
What you will learn:
- Set up for adding javascript to your website
- Enhance your HTML5 and JavaScript programming skills.
- Understand data types in Javascript.
- How to use conditional statements and loops in Javascript.
- DOM, DOM Scripting and DOM events in Javascript.
Who should read this book:
Developers who want to add Javascript to their website.