Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test() {
- let a = 1;
- function test2() {
- let a //TDZ start
- efmw //TDZ
- oirkpo //TDZ
- wo,prd32k //TDZ
- cssp //TDZ
- console.log(a) //TDZ
- a = 10; //TDZ end
- }
- test2();
- }
- test();
- // a is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement