Baheeg Training and Test Exam

Javascript beginner level

Score: 0 / 0 answered

Progress: 0 of 1519 qs

time elap: 00:00

Question 1: What is the output of the following code?

let x = 10;
function test() {
  let x = 20;
  console.log(x);
}
test();
console.log(x);