Question from the Javascript test

Print the value of the variable name and age in the function sayHi()

Medium
function sayHi() {
  console.log(name);
  console.log(age);
  var name = 'Lydia';
  let age = 21;
}

sayHi();
Author: Vincent CotroStatus: PublishedQuestion passed 270 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!