JavaScript, often abbreviated to JS, is a lightweight language created to enhance the interactivity of the web by Brendan Eich of Netscape in 1995. JavaScript uses objects, an item that can contain one or more functions and properties. A function is a list of actions that occurs when called by the user or code, and a property, or variable, is a value that is stored within an object.
If you're already familiar with programming, you'll find that JavaScript was highly influenced by the C language. JavaScript is finding increased use in applications beyond the web browser and is a powerful and useful language to learn.
Note
Contrary to popular misconceptions, JavaScript doesn't bear a relationship to the Java language. It was initially named Mocha, then LiveScript, and finally changed to JavaScript—a trademark of Sun Microsystems.
Don't worry if you haven't used JavaScript before, we'll go through each exercise step-by-step and explain how the code is interacting with our ad and its...