15 -> 26 -> 40 -> 16 -> 37 -> 58 -> 89 7 -> 49 -> 97 -> 130 -> 10 -> 1Напишите функцию, которая принимает число как параметр и возвращает 1 или 89 после выполнения указанного процесса.
iteratedSquare должна быть функцией.
testString: 'assert(typeof iteratedSquare=="function","iteratedSquare should be a function.");'
- text: iteratedSquare(4) должен вернуть число.
testString: 'assert(typeof iteratedSquare(4)=="number","iteratedSquare(4) should return a number.");'
- text: iteratedSquare(4) должен вернуть 89 .
testString: 'assert.equal(iteratedSquare(4),89,"iteratedSquare(4) should return 89.");'
- text: iteratedSquare(7) должен вернуть 1 .
testString: 'assert.equal(iteratedSquare(7),1,"iteratedSquare(7) should return 1.");'
- text: iteratedSquare(15) должен вернуть 89 .
testString: 'assert.equal(iteratedSquare(15),89,"iteratedSquare(15) should return 89.");'
- text: iteratedSquare(20) должен вернуть 89 .
testString: 'assert.equal(iteratedSquare(20),89,"iteratedSquare(20) should return 89.");'
- text: iteratedSquare(70) должен вернуть 1 .
testString: 'assert.equal(iteratedSquare(70),1,"iteratedSquare(70) should return 1.");'
- text: iteratedSquare(100) должен вернуть 1 .
testString: 'assert.equal(iteratedSquare(100),1,"iteratedSquare(100) should return 1.");'
```