Skip to content

Commit dc56498

Browse files
committed
Add more Bulgarian translation about function declaration and expressions
1 parent d6ed80c commit dc56498

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

translations/bg_BG/readme.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@
229229
}
230230
```
231231

232-
233-
B. Assignments, Declarations, Functions ( Named, Expression, Constructor )
234232
B. Прислояване, Декларации, Функции ( Именувани, Изрази, Конструктори)
235233
```javascript
236234
@@ -320,44 +318,44 @@
320318
```javascript
321319
322320
// 2.B.2.1
323-
// Named Function Declaration
321+
// Деклариране на именувана функция
324322
function foo( arg1, argN ) {
325323
326324
}
327325
328-
// Usage
326+
// Използване
329327
foo( arg1, argN );
330328
331329
332330
// 2.B.2.2
333-
// Named Function Declaration
331+
// Деклариране на именувана функция
334332
function square( number ) {
335333
return number * number;
336334
}
337335
338-
// Usage
336+
// Използване
339337
square( 10 );
340338
341-
// Really contrived continuation passing style
339+
// Много измислен стил на преминаване на параметри
342340
function square( number, callback ) {
343341
callback( number * number );
344342
}
345343
346344
square( 10, function( square ) {
347-
// callback statements
345+
// повикани изрази
348346
});
349347
350348
351349
// 2.B.2.3
352-
// Function Expression
350+
// Функция-Израз
353351
var square = function( number ) {
354-
// Return something valuable and relevant
352+
// Върнете нещо важно и релевантно
355353
return number * number;
356354
};
357355
358-
// Function Expression with Identifier
359-
// This preferred form has the added value of being
360-
// able to call itself and have an identity in stack traces:
356+
// Функция-Израз с Идентификатор
357+
// Тази предпочитана форма има добавената стойност
358+
// и името му ще бъде видимо в стека на функционалните обаждания:
361359
var factorial = function factorial( number ) {
362360
if ( number < 2 ) {
363361
return 1;
@@ -368,13 +366,13 @@
368366
369367
370368
// 2.B.2.4
371-
// Constructor Declaration
369+
// Деклариране на Конструктор
372370
function FooBar( options ) {
373371
374372
this.options = options;
375373
}
376374
377-
// Usage
375+
// Използване
378376
var fooBar = new FooBar({ a: "alpha" });
379377
380378
fooBar.options;
@@ -388,10 +386,10 @@
388386
```javascript
389387
390388
// 2.C.1.1
391-
// Functions with callbacks
389+
// Функции с обратно извикване
392390
foo(function() {
393-
// Note there is no extra space between the first paren
394-
// of the executing function call and the word "function"
391+
// Забележете, че няма интервали между първата скоба
392+
// на изпълненото фунционално извикване и думата "function"
395393
});
396394
397395
// Function accepting an array, no space

0 commit comments

Comments
 (0)