Bu, JavaScript'teki kapanışları kullanmadaki yaygın hatayı açıklar.
This describes the common mistake with using closures in JavaScript.
JavaScript'teki bütün ifadeler noktalı virgül ile bitmelidir.
Every statement in JavaScript must end with a semicolon.
JavaScript'teki kapanışların normalde işlevsel dillerde bulunanlardan farklı olduğundan şüpheleniyorum.
I suspect that closures in JavaScript differ from those normally found in functional languages.
Bu örneği anlamak için Javascript'teki "değişken kaldırma" özelliğini anlamanız gerekir.
You need to understand the "variable hoisting" feature in Javascript in order to understand this example.
JavaScript'teki Hatayı uzatmanın iyi bir yolu nedir?
What's a good way to extend Error in JavaScript?
Anlamanız gereken şey, javascript'teki değişkenlerin kapsamı fonksiyona dayanır.
What you need to understand is the scope of the variables in javascript is based on the function.
JavaScript'teki bir kapatma, tıpkı bir işlev çıktığında olduğu gibi tüm yerel değişkenlerin bir kopyasını tutmak gibidir.
A closure in JavaScript is like keeping a copy of all the local variables, just as they were when a function exited.
JavaScript'teki bir kapanma, bir işlevden çıkıldığında olduğu gibi, tüm yerel değişkenlerin bir kopyasını tutmak gibidir.
A closure in JavaScript is like keeping a copy of all the local variables, just as they were when a function exited.
JavaScript'teki değişkenler hakkında başka bir olağandışı şey, istisna olmaksızın daha sonra bildirilen bir değişkene başvurabilmenizdir.
Another unusual thing about variables in JavaScript is that you can refer to a variable declared later, without getting an exception.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.