sonsoru.js

 avatar
unknown
javascript
9 months ago
267 B
13
Indexable
let x = "Global"; 

function disFonksiyon() {
  let x = "Fonksiyon"; 

  if (true) {
    let x = "Blok"; 
    console.log("İç bloktaki x:", x); 
  }

  console.log("Fonksiyon içindeki x:", x); 
}

disFonksiyon();

console.log("Globaldeki x:", x); 
Editor is loading...
Leave a Comment