Blog/Podcast
A new mantra for your next (programming) meditation session
https://vimeo.com/92632796 Or, What it really means when people say "Everything in JavaScript is an object" When you begin programming with JavaScript you might run across books, tutorials, and people who say "Everything in JavaScript is an object." While it's not...
Keeping track of ‘this’ in JavaScript
In JavaScript, the special variable this
is used to refer an object. But which object this refers too depends on the code you're executing and how this
is used. So, a common problem for those learning JavaScript is keeping track of the value of this
in different situations.
What is that upside-down tree doing in my browser?
https://vimeo.com/92632793/ The Document Object Model (DOM) The secret to getting your web pages to do your bidding with code is to use JavaScript to manipulate the Document Object Model, or DOM. The DOM is an upside-down tree-like structure that the browser uses...
JavaScript Scope, not what you might think
Whether you’re coming to JavaScript from another language, or you’re learning JavaScript as your first language, the way scope works — that is, when and where your variables are defined — might surprise you.
Using the browser console to experiment with and test your JavaScript code
https://vimeo.com/90078434/ In Head First JavaScript Programming, we use the developer console in the browser to test code, and to debug our code when we have problems. The developer console in each browser is a little bit different, but they all do basically the...
Reader question: web fonts not working in Firefox
A reader of Head First HTML and CSS wrote in today to ask about web fonts. Web fonts is a fairly new feature supported by browsers that allows you to include non-standard fonts in your web page. It works like this: you specify the font you want in your CSS using...
Flexibility is fun, but use it with care
When you begin programming in JavaScript, you'll need to use variables. A variable is just a bit of storage to hold a value. Just about every line of code you write will use a variable of one kind or another, so it's a good idea to get familiar with the kinds of things you can put in variables, and how you can use them.
Dive into JavaScript
If you know HTML and CSS, you're ready to begin learning JavaScript. But you might be surprised, because JavaScript looks quite different from both HTML and CSS...
Getting JavaScript in your pages, the right way
Everyone knows you put your <script> element at the top of your HTML page, right? Not so fast.
A Teaser from Head First JavaScript Programming
You already know that we've taken on writing a totally new Head First book—Head First JavaScript Programming—but don't just sit back and wait for it to arrive on the shelves.