Skip to content

Commit 9806e38

Browse files
authored
Update article.md
1 parent 9beb11b commit 9806e38

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

1-js/02-first-steps/15-function-basics/article.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Functions
1+
# Функциялар
22

33
Quite often we need to perform a similar action in many places of the script.
44

@@ -8,15 +8,15 @@ Functions are the main "building blocks" of the program. They allow the code to
88

99
We've already seen examples of built-in functions, like `alert(message)`, `prompt(message, default)` and `confirm(question)`. But we can create functions of our own as well.
1010

11-
## Function Declaration
11+
## Функцияны жарыялоо
1212

1313
To create a function we can use a *function declaration*.
1414

1515
It looks like this:
1616

1717
```js
1818
function showMessage() {
19-
alert( 'Hello everyone!' );
19+
alert( 'Баарына салам!' );
2020
}
2121
```
2222

@@ -30,11 +30,11 @@ function name(parameter1, parameter2, ... parameterN) {
3030

3131
Our new function can be called by its name: `showMessage()`.
3232

33-
For instance:
33+
Мисалы үчүн:
3434

3535
```js run
3636
function showMessage() {
37-
alert( 'Hello everyone!' );
37+
alert( 'Баарына салам!' );
3838
}
3939

4040
*!*

0 commit comments

Comments
 (0)