()
| 69 | // * we can go inward -> outward |
| 70 | // ! not outward -> inward |
| 71 | function myFunc2() { |
| 72 | let name = "brandon"; |
| 73 | // able to access x variable in a different scope |
| 74 | console.log(x); // "bad" |
| 75 | } |
| 76 | |
| 77 | myFunc2(); |
| 78 | // console.log(name);//ReferenceError: name is not defined |