Skip to content

Commit 6d89b04

Browse files
committed
Fix issues
1 parent 97e6f9f commit 6d89b04

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

chapter-00-preface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The free course for beginners in SoftUni is suitable for **school students** (of
1919
2020
**A new group starts each month**. The "Programming Basics" course at SoftUni is organized regularly using a few different programming languages as a basis. So, just check it out! The course is **free**, and you can quit any time you like. **Signing up** for free - live or online training is available via the **SoftUni application form**: https://softuni.org. -->
2121

22-
## Why did we Choose The JavaScript Language?
22+
## Why Did We Choose The JavaScript Language?
2323

2424
For this book, we chose **JavaScript**, because it is a **modern** language for high-level programming and at the same time it is easy to learn and suitable for **beginners**. As a use **JavaScript** is **widespread**, with a well-developed ecosystem, numerous libraries, and technological frameworks, and therefore gives many **prospects** for development. **JavaScript** combines the paradigms of procedural, functional, and object-oriented programming in a modern way with easy-to-use syntax. In the book, we'll use the **JavaScript language** and the **Visual Studio Code** development environment, which is available for free from Microsoft.
2525

chapter-06-nested-loops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ How does the example work? We initialize **a loop with a variable `i = 1`**, whi
2121
Test your solution here:: [https://judge.softuni.org/Contests/Practice/Index/935#0](https://judge.softuni.org/Contests/Practice/Index/935#0).
2222

2323

24-
###Example: Rectangle Made of N x N Stars
24+
### Example: Rectangle Made of N x N Stars
2525

2626
Write a program that gets a positive integer **n** and prints on the console **a rectangle made out of N x N stars**.
2727

chapter-07-complex-loops.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ We can use the following idea to solve the problem:
249249

250250
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/937#8](https://judge.softuni.org/Contests/Practice/Index/937#8).
251251

252-
## Infinite Loops and The break Operator
252+
## Infinite Loops and The `break` Operator
253253

254254
So far, we were introduced to various types of loops, learning what structures they have and how they are applied. Now, we need to understand what an **infinite loop** is, when it occurs, and how we can break it using the **`break`** operator.
255255

@@ -266,7 +266,7 @@ And here is an **infinite `for`** loop:
266266
![](assets/chapter-7-1-images/00.Infinite-for-loop-01.png)
267267

268268

269-
### The Break Operator
269+
### The `break` Operator
270270

271271
We already know that the infinite loop executes a certain code infinitely, but what if we want at some point under a given condition to interrupt and exit the loop? The **break** operator comes in handy in this situation.
272272

@@ -344,7 +344,7 @@ Here is an example implementation of the idea:
344344

345345
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/937#10](https://judge.softuni.org/Contests/Practice/Index/937#10).
346346

347-
## Nested Loops and The break Operator
347+
## Nested Loops and The `break` Operator
348348

349349
Now since we know what the **nested loops** are and how the **`break`** operator works, it is time to figure out how they work together. To get a better idea, we should write a **function** step by step, that should make all possible combinations of **number pairs**. The first number in the pair is increasing from 1 to 3, while the second one is decreasing from 3 to 1. Our solution must continue running until **`i + j`** **is not** equal to 2 (i.e. **`i = 1`** and **`j = 1`**).
350350

chapter-10-functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/943#
263263

264264
Up to this point, we have viewed functions that do a specific task. For example printing a text, number, or a figure on the console. There is another type of function that can **return** a **result** from their task. We can return a result of the multiplication of two numbers. We will look at this type of function in this part.
265265

266-
### Operator Return
266+
### The Operator `return`
267267
To get a result from a function we use the operator **`return`**. He must be **used inside the body** of a function. The **`return`** will tell the program to **stop the execution** of the function and **return** a corresponding value. This value is defined after the **`return`** word.
268268

269269
In the example underneath we have a **function** that gets the first and last name as **parameters**. Then it combines them and returns the full name.
@@ -276,7 +276,7 @@ In the example below, we have a function that compares 2 numbers and **returns**
276276

277277
![](assets/chapter-10-images/11.Return-operator-02.png)
278278

279-
#### Code After a return is Unreachable
279+
#### Code After a `return` is Unreachable
280280

281281
When the **return** operator is located inside a conditional statement such as **`if`**, after the statement in the same block, we must **not** have rows with code because Visual Studio Code will display a warning telling us that it had found an **unreachable** code.
282282

@@ -289,7 +289,7 @@ The operator **`return`** can be also used without a **specific value**. In this
289289
with the phrase <b><i>type</i> <code>return; return;</code> <i>and let's go home</i></b>”, to explain that the logic of the program is wrongly typed.</td></tr>
290290
</table>
291291

292-
### Using The return Value of a Function
292+
### Using The `return` Value of a Function
293293

294294
After a function is executed and has returned a value, we can use the value in several ways.
295295

0 commit comments

Comments
 (0)