FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScript-Learning/function-variable-condition.html at master · xiazhe/JavaScript-Learning · GitHub
xiazhe
/
JavaScript-Learning
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
4
Code
Issues
0
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScript-Learning
/
function-variable-condition.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (26 loc) · 612 Bytes
Breadcrumbs
JavaScript-Learning
/
function-variable-condition.html
Copy path
File metadata and controls
34 lines (26 loc) · 612 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html
>
<
html
>
<
head
>
<
title
>
</
title
>
<
meta
charset
="
utf-8
"
/>
</
head
>
<
body
>
<
script
>
'use strict'
;
function
test
(
)
{
if
(
1
==
1
)
{
var
name
=
"余文乐"
;
}
console
.
log
(
name
)
;
for
(
var
i
=
0
;
i
<
10
;
i
++
)
{
var
j
=
10
-
i
;
}
console
.
log
(
i
)
;
//10
console
.
log
(
j
)
;
//1
}
test
(
)
;
console
.
log
(
name
)
;
// '' window.name
//function 中, if/for 语句中定义的变量, function 环境中可访问.
</
script
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL