Skip to main content

JavaScript Question 86

Question 86 of 0JavaScript

Which option is a way to set `hasName` equal to `true`, provided you cannot pass `true` as an argument?

Login Required

Please login to select answers and solve this question. You can view the question without logging in.

Code:
function getName(name) {
  const hasName = //
}

Select the correct option: