What would be the output? (Based on Temporal Dead Zone)

@Yomesh Gupta
var firstname = computeName();

let name = "Yomesh";

function computeName() {
  return `${name} Gupta`;
}

console.log(firstname);
Option 1
Yomesh Gupta
Option 2
undefined Gupta
Option 3
Error
Option 4
None of the above
Do you see value in our efforts?

Devtools Tech is a free platform for Frontend Engineers. It takes a lot of time, effort, and finanical resources to keep the platform running. If you see any value in our work and would like to support us then you can do using the following options.

InternationalDomestic