JavaScript

Step 8: Add the following starting at line 5:
function doSomething() {

}
The keyword function creates a function, which is a block of code that performs an action. Most functions have names, and in this case, the name is doSomething. Function names should be camel cased. The part between the curly brackets specifies what the function does.
Last step Next step