by Elisabeth Robson | Feb 18, 2015 | Beginner's Mind, blog, Programming
In programming you can assign values to variables. In some languages, you can also assign values to constants. What’s the difference? The values of variables can vary (which is why they’re called variables), but the values of constants can’t. In...
by Elisabeth Robson | Jul 23, 2014 | blog, Programming, Reader Question
I got another great question from a Head First JavaScript Programming reader this week. He was working on a big project and had modified our Model-View-Controller code from Chapter 8. Here’s what he wrote: I’m trying to get rid of the last global variable,...
by Elisabeth Robson | May 28, 2014 | blog, JavaScript, JSVideo, Teaser Video, Video
A few best practices for when you’re learning the language With every programming language, there’s a list of do’s and don’ts and JavaScript is no exception. Some of these best practices are there for your protection (like always always always...
by Elisabeth Robson | May 21, 2014 | blog, JavaScript, JSVideo, Teaser Video, Video
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...
by Elisabeth Robson | May 14, 2014 | blog, JavaScript, JSVideo, Teaser Video, Video
Keeping track of this 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...
by Elisabeth Robson | May 7, 2014 | blog, JavaScript, JSVideo, Teaser Video, Video
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 to represent your web page...
by Elisabeth Robson | May 5, 2014 | blog, JavaScript, JSVideo, Teaser Video, Video
JavaScript Scope Now that Head First JavaScript Programming is done, we’ve got a few more Head First JavaScript Programming teasers for you. The book is aimed at those of you who are learning JavaScript from the ground up, and our goal with these teasers is to tease...
by Elisabeth Robson | Mar 26, 2014 | blog, JavaScript, JSVideo, Teaser Video, Video
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 same things. First, read our...
by Elisabeth Robson | Mar 13, 2014 | Beginner's Mind, Featured, Programming
Ready to learn how to program? Or, perhaps you already know how to program in another language, like Ruby or PHP or Python, but need to know JavaScript? Then Head First JavaScript Programming is for you. Head First JavaScript Programming starts with the basics...
by Elisabeth Robson | Dec 28, 2013 | Beginner's Mind, blog, Reader Question
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 the...
Comments