Question 1 of 30
In a JavaScript function, you declare a variable using `let` inside a block and then attempt to access it outside of that block. Additionally, you have a variable declared with `var` at the top of the function. What will be the output of the following code snippet?
javascript
ction testScope() {
x = 10;
(true) {

Preparing for Microsoft 98-382 Introduction to Programming Using JavaScript? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free