Need help getting started?
FireFox: go to Tools > Web Developer > Web Console (here’s a guide)
IE11: go to Tools > Developer Tools > Console icon (here’s a guide)
Safari: turn on the Develop menu: Preferences > Advanced > Show Develop menu in menu bar go to Develop > Show Web Inspector (here’s a guide)
ifstatements. In their simplest form,
ifstatements ask if a condition evaluates to true, and if so, it executes a set of commands. If the conditions are not met, an
elsestatement contains the set of statements to execute otherwise. See the MDN for more on
ifstatements and other control flow operators.
carobject that encapsulates a
startCar()method and an
whileloops will continually execute statements so long as some condition evaluates to
forloops generally use iterators to determine the number of times to execute a set of statements.
inloops execute a set of statements over all of the (enumerable) properties of an object. See the MDN for more on loops.
"this is a string"or an empty string,
var variableName = someData;. Any type of data, from strings to functions and objects, can be saved as a variable. All new variables are declared with
var, regardless of the type, followed by the variable name and an equal sign. Whatever is on the right side of the equal sign will be saved to that variable name and can be referenced later by that name.
Learn about the tools we'll be using throughout the course and begin modifying web pages with a little bit of code.
Finish the résumé while you learn how to make your code more modular and reusable by using conditional statements, loops, and functions.