当前位置:网站首页>Recursive function, factoring
Recursive function, factoring
2022-07-18 09:46:00 【Lyinshaofeng】
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script>
function test(){
// An array of class
console.log(arguments);
for (var item of arguments) {
console.log(item);
}
// An array of class --》 Array
console.log(Array.from(arguments));
}
test(1,2,3,4)
// Formal parameters and arguments Mutual mapping , Will be modified at the same time
function test2(a,b){
arguments[1]=6;
console.log(b);
}
test2(1,2,3,4);
// 100*99*98*96*.....*1
function cal(n){
if(n==1){
return 1;
}
return n*cal(n-1);
}
console.log(cal(6));
/*
recursive : Call the function itself inside the function
The way : Looking for a regular , Look for the exit
cal(100)=100*cal(99);
100*cal(99)=100*99*98*.....*2*cal(1)
*/
</script>
</body>
</html>
边栏推荐
- Centos7.2 install mysql5.7 through RPM package
- STM32F030外部中断配置
- Leetcode-14-longest public prefix
- Shiro integrates redis to realize distributed session processing
- leetcode双指针水题题解
- HCIP(第一天)(HCIA知识复习)
- 金太阳国信证券安全吗?可以在上面开户吗?
- 【空间&单细胞组学】第2期:乳腺癌患者经anti-PD1治疗后,肿瘤内变化的单细胞图谱
- 盲目用多线程反而容易导致 OOM
- Codeforces Round #802 C. Helping the Nature
猜你喜欢

Nest 框架

Perspective of 100 listed companies on the Beijing stock exchange: the new world of middle-aged men of science and technology

CAN通信(1)——CAN通信物理层

Can communication (2) - can communication protocol layer

学习使用亚马逊国际获得AMAZON商品详情 API

LeetCode-14-最长公共前缀

Codeforces Round #803 (Div. 2) B. Rising Sand
![[Space & single cell omics] phase 2: combined single cell and bulk transcriptome to identify two epithelial tumor cell states in colorectal cancer, and improved CMS typing](/img/a4/c08224c4adf892fc1f536b1b78e49a.png)
[Space & single cell omics] phase 2: combined single cell and bulk transcriptome to identify two epithelial tumor cell states in colorectal cancer, and improved CMS typing
MySQL logs: undo log, redo log, binlog

答读者问(6):单细胞TPM矩阵如何分析?
随机推荐
【快速下载VsCode】
Leetcode-62-different paths
leetcode双指针水题题解
STM32F030外部中断配置
Stm32f030 external interrupt configuration
Codeforces Round #803 (Div. 2) D. Fixed Point Guessing
Mysql——ER模型
LeetCode-240-搜索二维矩阵Ⅱ
Microservice architecture | component directory
模拟卷Leetcode【普通】1996. 游戏中弱角色的数量
MySQL的主从复制原理是什么
Codeforces Global Round 21 B. NIT Destroys the Universe
JUC并发包—CyclicBarrier(循环栅栏)
Educational Codeforces Round 131 A - D
证券开户国泰君安?安全吗?
【空间&单细胞组学】第2期:乳腺癌患者经anti-PD1治疗后,肿瘤内变化的单细胞图谱
常用和实用的sql语句
Code change and invariance
Exness: crude oil stopped falling and rebounded. Pay attention to the performance of US terrorist data in the evening
Mysql: command not found