add
чтобы он использовал currying для добавления параметров x
, y
и z
. add(10)(20)(30)
should return 60
.");'
- text: add(1)(2)(3)
должен вернуть 6
.
testString: 'assert(add(1)(2)(3) === 6, "add(1)(2)(3)
should return 6
.");'
- text: add(11)(22)(33)
должен вернуться 66
.
testString: 'assert(add(11)(22)(33) === 66, "add(11)(22)(33)
should return 66
.");'
- text: 'Ваш код должен содержать заключительный оператор, который возвращает x + y + z
.'
testString: 'assert(code.match(/[xyz]\s*?\+\s*?[xyz]\s*?\+\s*?[xyz]/g), "Your code should include a final statement that returns x + y + z
.");'
```