by Elisabeth Robson | Mar 26, 2015 | Beginner's Mind, blog, Programming
In my previous post, I experimented with the new const keyword which you can use to create constants in JavaScript. Along with var and const, we’ll soon have a third way to declare values in JavaScript: the let keyword. Like var, you’ll use let to create...
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 | 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 | Jul 7, 2012 | Beginner's Mind, blog, Programming, Reader Question
Another great question from a reader of Head First HTML5 Programming is about passing functions as values. This comes up when using the Geolocation API: the way you get your location is to call the built-in function getCurrentPosition() and pass in two arguments, both...
by Elisabeth Robson | Jul 6, 2012 | Beginner's Mind, blog, Programming, Reader Question
A couple of weeks ago, I got a great question from a reader of Head First HTML5 Programming: What is a API? Is it like a constructor function or is it just an object or something else? We use the term “API” frequently in Head First HTML5 Programming...
Comments