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 268 times
Edit
3
Community Evaluations
developer avatar
Cyril
16/02/2023
Old but gold. Vraiment cool