Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Javascript_基礎二.pdf
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
darrenyaoyaoyao
October 27, 2020
Programming
0
130
Javascript_基礎二.pdf
darrenyaoyaoyao
October 27, 2020
Tweet
Share
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
58
Pug.pdf
darrenyaoyaoyao
0
70
Sass.pdf
darrenyaoyaoyao
0
56
jquery.pdf
darrenyaoyaoyao
1
70
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
58
bootstrap.pdf
darrenyaoyaoyao
1
78
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
91
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
58
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
36
Other Decks in Programming
See All in Programming
AWS Infrastructure as Code の新機能 2025 総まとめ 〜SA 4人による怒涛のデモ祭り〜
konokenj
10
3.1k
SourceGeneratorのマーカー属性問題について
htkym
0
130
AIプロダクト時代のQAエンジニアに求められること
imtnd
2
640
AI活用のコスパを最大化する方法
ochtum
0
120
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
470
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.4k
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
230
Raku Raku Notion 20260128
hareyakayuruyaka
0
430
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
180
ご飯食べながらエージェントが開発できる。そう、Agentic Engineeringならね。
yokomachi
1
280
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
8
2.4k
New in Go 1.26 Implementing go fix in product development
sunecosuri
0
310
Featured
See All Featured
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.1k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Ethics towards AI in product and experience design
skipperchong
2
210
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Code Reviewing Like a Champion
maltzj
528
40k
A better future with KSS
kneath
240
18k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
65
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Believing is Seeing
oripsolob
1
68
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
190
Being A Developer After 40
akosma
91
590k
How to build a perfect <img>
jonoalderson
1
5.2k
Transcript
Javascript 基礎⼆ 控制網⾴的基礎
今⽇⽬標
for 迴圈 for (var i = 0 ; i <
5 ; i++) { … }
for ( 語法⼀ ; 語法⼆ ; 語法三) { … }
語法⼀ : 初始條件 語法⼆ : 結束條件 語法三 : 每次回圈都要執⾏的程式
for 迴圈其實是程式碼的縮寫 for (var i = 0 ; i <
5 ; i++) { console.log(“Hello”) } console.log(“Hello”) console.log(“Hello”) console.log(“Hello”) console.log(“Hello”) console.log(“Hello”)
function 函式 function () { … return XXX; } 封裝常⽤的程式碼
array 陣列 var a = [“12”, “23”, “4”] a[0] =
“12” a[1] = “23” a[2] = “4”
array 陣列常⽤⼦函式 var a = [“12”, “23”, “4”] a.length //
指 a 的長度 a.push(“56”) // 在尾巴新增內容
object 物件 var david = { age: 12, weight: 70
} david.age = 12 david.weight = 70
object 物件 var david = { age: 12, weight: 70
} david.age = 12 david.weight = 70
object 物件 var david = { age: 12, weight: 70
} 我們會稱 age 為 key 12 為 value
object 物件 var david = { age: 12, weight: 70
} key 可以為任意英⽂字或字串 value 可以為任何型態 包括 function, arrary, object