minor fixes

This commit is contained in:
Ilya Kantor 2021-11-01 23:15:10 +03:00
parent 9fcffe1692
commit 15f7acfc2a
15 changed files with 17 additions and 17 deletions

View file

@ -283,7 +283,7 @@ The `bounce` function does the same, but in the reverse order: "bouncing" starts
```js
function bounce(timeFraction) {
for (let a = 0, b = 1, result; 1; a += b, b /= 2) {
for (let a = 0, b = 1; 1; a += b, b /= 2) {
if (timeFraction >= (7 - 4 * a) / 11) {
return -Math.pow((11 - 6 * a - 11 * timeFraction) / 4, 2) + Math.pow(b, 2)
}