Mark As Completed Discussion

Are you sure you're getting this? Click the correct answer from the options.

What will the following program output?

1var firstName = "Anna";
2var lastName = "Green"
3var name = firstName + lastName;
4console.log(name);

Click the option that best answers the question.

  • AnnaGreen
  • Anna Green
  • Anna
  • Will give an error