mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): step 54 math.pow too strict (#55793)
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ assert.match(getStandardDeviation.toString(), /standardDeviation\s*=\s*Math\.pow
|
||||
Your `Math.pow()` function should have a base of `variance` and an exponent of `1/2`.
|
||||
|
||||
```js
|
||||
assert.match(getStandardDeviation.toString(), /standardDeviation\s*=\s*Math\.pow\(\s*variance\s*,\s*1\s*\/\s*2\s*\)/);
|
||||
assert.match(getStandardDeviation.toString(), /standardDeviation\s*=\s*Math\.pow\(\s*variance\s*,\s*(\(\s*1\s*\/\s*2\s*\)|1\s*\/\s*2|0\.5|\.5)\s*\);?\s*\}/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user