Closed samcareelmont closed 3 years ago
why?
I've read the section a few times more and the question has disappeared. Sorry for the bother and thanks for writing this book!
(I got myself confused because a function looks like a block since it's also defined using curly brackets.)
I already searched for this issue
Edition: 2nd
Book Title: Get Started
Chapter: Chapter 2: Surveying JS
Section Title: Declaring and Using Variables
Question:
It seems to me that myName behaves more like a let-declared variable than like a var-declared variable.