File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
describe ( "extractCurrencyValue" , function ( ) {
2
2
3
- it ( "for the string $120 returns the number 120" , function ( ) {
3
+ it ( "dla ciągu $120 zwraca numer 120" , function ( ) {
4
4
assert . strictEqual ( extractCurrencyValue ( '$120' ) , 120 ) ;
5
5
} ) ;
6
6
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ importance: 4
2
2
3
3
---
4
4
5
- # Extract the money
5
+ # Wyciągnij liczbę
6
6
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 .
8
8
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 .
10
10
11
- The example :
11
+ Na przykład :
12
12
13
13
``` js
14
14
alert ( extractCurrencyValue (' $120' ) === 120 ); // true
You can’t perform that action at this time.
0 commit comments