Lately there are many sudden rain...
What I did
- Continue watching video.
Learn JavaScript
What I learned
- Nested arrays
- for and while loop
for (var i = 0; i < 10; i += 2) {
console.log(i); // 2, 4, 6, 8
}
for (var i = 10; i > 0; i -= 2 ) {
console.log(i); // 8, 6, 4, 2
}
- nested for loop
I have frequently used this when I conducted graduation study.
- Random (Math.random, Math.floor)
The above is the detailed content of Dayf DaysOfJavaScript. For more information, please follow other related articles on the PHP Chinese website!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn