This commit is contained in:
Ilya Kantor 2016-07-22 20:47:41 +03:00
parent 057783d216
commit 3f5f2cac8b
324 changed files with 669 additions and 286 deletions

View file

@ -0,0 +1,22 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script src="pow.js"></script>
Пример для отладчика.
<script>
var fiveInCube = pow(5, 3);
alert(fiveInCube);
</script>
</body>
</html>

View file

@ -0,0 +1,8 @@
function pow(x, n) {
if (n == 1) {
return x;
}
var result = x * pow(x, n - 1);
return result;
}