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:

Skip Quiz Review Video