Skip to content

Commit b39c43b

Browse files
committed
Add a solution 5-3-4 'extract-currency'
1 parent 5919431 commit b39c43b

File tree

1 file changed

+5
-1
lines changed
  • 1-js/05-data-types/03-string/4-extract-currency

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
1+
```js run
2+
function extractCurrencyValue(str) {
3+
return +str.slice(1);
4+
}
5+
```

0 commit comments

Comments
 (0)