当前位置:网站首页>Day23 JS notes 2021.09.14
Day23 JS notes 2021.09.14
2022-06-28 11:30:00 【Little dream of becoming a big man】
while Loop structure
while( Conditional statements ){
Conditional execution code
}
do while Loop structure
do while Cycle is while Circulating variants . The cycle flow is similar , The only difference is do while The loop executes once first , Whether or not the conditions are valid , Do it first , The following process and while The cycle is the same .
for Loop structure
for( Declare variables and assign initial values ; Conditional expression ; The change law of the variable after each repetition ){
Repeated code block
}
# Declare variables and assign initial values in the syntax , Is where to start repeating ; Conditional expressions can limit when repetition stops ( When conditions don't hold ); You can know how many times to repeat by repeating the change of the variable and the conditional expression each time
Jump keyword in loop
continue keyword , You can skip the current cycle , Go straight to the next cycle .
break keyword , Can terminate the cycle , Let the whole cycle run directly .
Nesting of loops
for(var i=1;i<=5;i++){
for(var j=1;j<=5;j++){
document.write(" The first " + i + " Individual runner " + j + " circle <br>");
}
}
边栏推荐
- 分析list中有无重复数据且重复了几次
- Graduation season, some suggestions for you who are new to the society
- MySQL cannot query the maximum value using the max function
- New listing of operation light 3.0 - a sincere work of self subversion across the times!
- MySQL installation configuration and solving the problem of forgetting root password when reinstalling MySQL
- Mysql安装配置以及解决重装Mysql时忘记root password问题
- Graduated
- 近况
- Compareto() and equals() methods of BigDecimal class
- TiDB v6.0.0 (DMR) :缓存表初试丨TiDB Book Rush
猜你喜欢

For example, the visual appeal of the live broadcast of NBA Finals can be seen like this?

Yann Lecun's new paper: the road to building automatic agents

利用soapUI获取freemarker的ftl文件模板

JS foundation 1-js introduction and operator

培训通知|2022年境外中资企业机构及人员疫情防控和安全防范专题培训通知

Day39 prototype chain and page Fireworks Effect 2021.10.13

QML control type: tabbar

【实战】1364- 实现一个完美的移动端瀑布流组件(附源码)

Scientific research - web of science retrieval skills

Web page tips this site is unsafe solution
随机推荐
Introduction to GDB
远程登录sshd服务
Makefile简介
Recommended practice sharing of Zhilian recruitment based on Nebula graph
Xshell和Xftp使用教程
QML控件类型:TabBar
Machine learning project captcha based on verification code recognition_ Trainer operation practice
JS foundation 4
科研丨Web of Science检索技巧
100 important knowledge points that SQL must master: retrieving data
JS基础3
Apache2配置对目录拒绝访问,但是可以访问里面文件的设置
Summary of spatial temporal time series prediction modeling methods
This Exception was thrown from a job compiled with Burst, which has limited exception support. 报错
For example, the visual appeal of the live broadcast of NBA Finals can be seen like this?
GDB简介
一套十万级TPS的IM综合消息系统的架构实践与思考
GCC introduction
mysql-. SQL file phishing Online
Lihongyi, machine learning 7 Conclusion