Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1function greet(name) { ... } | AWrong - multiple parameters need a comma between them | |
| 2function add(a, b) { ... } | BDeclares a function that accepts two parameters, a and b | |
| 3Holds the value passed in when a function is called | CWrong - 'function' must be lowercase | |
| 4Separates multiple parameters in a function declaration | Dname | |
| 5function add(a b) { ... } | E, | |
| 6Function greet(name) { ... } | FDeclares a function that accepts a name parameter |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
parameter — A named placeholder inside a function's parentheses that receives an input value when called.function greet(name) {function add(a, b) {function multiply(x, y) {console.log(a + b);function introduce(name, age) {