You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many programming languages, one function can be declared as **different variants** with the same name but different parameters. This is known as **method overloading**. For good or bad **JavaScript**, language doesn't support this.
389
389
@@ -528,6 +528,28 @@ Define a function **`printName(name)`** and implement it. Write a function **`so
528
528
529
529
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/943#7](https://judge.softuni.org/Contests/Practice/Index/943#7).
530
530
531
+
### Problem: String Repeater
532
+
533
+
Create a function **`repeatString(str, count)`**, which takes parameters of type **`string`** and an integer **`n`** and returns the string, repeated **`n`** times. After this print the result on the console.
Keep in mind that **in JavaScript concatenating strings in loops leads to bad performance** and is not recommended.
548
+
549
+
## Testing in the Judge System
550
+
551
+
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/943#9](https://judge.softuni.org/Contests/Practice/Index/943#9).
552
+
531
553
### Problem: Min Method
532
554
533
555
Define a function **`GetMin(int a, int b)`** and implement it, after which invoke it from the function **`solve(...)`** as shown below. To find the minimum of three numbers, first, find the minimum of the first two and then the minimum of the result and the third number:
0 commit comments