Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Maria Dan
Added: Jun 23, 2021 4:27 PM
Views: 41
Tags: no tags
  1. if (true) {
  2.    let a = 1
  3. }
  4. // не видит
  5. console.log(a)
  6.  
  7. if (true) {
  8.    var a = 1
  9. }
  10. //  видит
  11. console.log(a)