8000 use function declaration according to the context by lke0 · Pull Request #210 · BonsaiDen/JavaScript-Garden · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/en/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ JavaScript **hoists** declarations. This means that both `var` statements and
`function` declarations will be moved to the top of their enclosing scope.

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
2 changes: 1 addition & 1 deletion doc/es/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ La declaración de **hoists** en JavaScript. Esto significa que tanto la declara
la `función` declarada se translada a la parte superior de su ámbito que lo contiene.

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
2 changes: 1 addition & 1 deletion doc/fi/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Ainoastaan [funktion](#function.general) parametrit ja muuttujat, jotka sisält
JavaScript **hilaa** määreitä. Tämä tarkoittaa sitä, että sekä `var`-lausekkeet että `function`-määreet siirretään ne sisältävän näkyvyysalueen huipulle.

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
2 changes: 1 addition & 1 deletion doc/ja/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ JavaScriptのローカル変数の為の唯一の作成方法は[function](#func
JavaScriptは宣言を**巻き上げ**ます。これは`var`ステートメントと`function`宣言が、それらを含むスコープの一番先頭に移動するという事を意味します。

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
2 changes: 1 addition & 1 deletion doc/ko/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ JavaScript에서 지역 변수는 [함수의 파라미터](#function.general)와
JavaScript는 선언문을 모두 **호이스트(Hoist)**한다. 호이스트란 `var` 구문이나 `function` 선언문을 해당 스코프의 맨 위로 옮기는 것을 말한다.

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
2 changes: 1 addition & 1 deletion doc/pl/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ kluczowym `var` jak i deklaracje funkcji `function` zostaną przeniesione na
początek otaczającego zasięgu.

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
2 changes: 1 addition & 1 deletion doc/ru/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
JavaScript **высасывает** определения. Это значит, что оба определения с использованием `var` и определение `function` будут перенесены наверх заключающей их области видимости.

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
2 changes: 1 addition & 1 deletion doc/tr/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ JavaScript'te tanımlamalar **yukarı taşınır**. Yani hem `var` ifadesi hem d
`function` bildirimleri içindeki bulundukları kapsamın en üstüne taşınırlar.

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
2 changes: 1 addition & 1 deletion doc/zh/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ JavaScript 中局部变量只可能通过两种方式声明,一个是作为[
JavaScript 会**提升**变量声明。这意味着 `var` 表达式和 `function` 声明都将会被提升到当前作用域的顶部。

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
2 changes: 1 addition & 1 deletion doc/zhtw/function/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ JavaScript 中沒有寫示的命名空間定義,這代表著它所有定義的
JavaScript 會 **提昇** 變數宣告, 這代表著 `var` 和 `function` 的圈告都會被提升到當前作用域的頂端。

bar();
var bar = function() {};
function bar() {}
var someValue = 42;

test();
Expand Down
0