- Function Parameters and Arguments 4:48
- Pass an Argument to a Function 3 objectives
- Pass Multiple Arguments to a Function 4:32
- Parameters and Arguments Review 5 questions
- Create a max() Function 2 objectives
- Variable Scope 7:01
- Function Declarations vs. Function Expressions 4:29
- Scope and Function Expressions Review 7 questions
Well done!
You have completed Scope and Function Expressions Review!
Quiz Question 1 of 7
Given the code below, what appears in the alert dialogue when this program runs?
const name = "Trish";
function setName() {
const name = "Sarah";
}
setName();
alert(name);
Choose the correct answer below: