Skip to content

Commit badc904

Browse files
03-string>4-extract-currency
1 parent 20587fa commit badc904

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

1-js/05-data-types/03-string/4-extract-currency/_js.view/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
describe("extractCurrencyValue", function() {
22

3-
it("for the string $120 returns the number 120", function() {
3+
it("dla ciągu $120 zwraca numer 120", function() {
44
assert.strictEqual(extractCurrencyValue('$120'), 120);
55
});
66

1-js/05-data-types/03-string/4-extract-currency/task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ importance: 4
22

33
---
44

5-
# Extract the money
5+
# Wyciągnij liczbę
66

7-
We have a cost in the form `"$120"`. That is: the dollar sign goes first, and then the number.
7+
Mamy koszty zapisane w postaci ciągu `"$120"`. Oznacza to, że najpierw pojawia się znak dolara, a następnie liczba.
88

9-
Create a function `extractCurrencyValue(str)` that would extract the numeric value from such string and return it.
9+
Stwórz funkcję `extractCurrencyValue(str)` która wydobędzie wartość liczbową z takiego ciągu i ją zwróci.
1010

11-
The example:
11+
Na przykład:
1212

1313
```js
1414
alert( extractCurrencyValue('$120') === 120 ); // true

0 commit comments

Comments
 (0)