r28 vs r29
......
6969
출력}}} ||
7070
7171
== 변수 c\= ==
72
null과 "" 다름 테스트.
73
74
||<table bgcolor=transparent,transparent> 구분 || c= ||
75
|| =null || {{{#!if c==null
72
null과 "" 어떤 조건에서 되는지 테스트.
73
||<table bgcolor=transparent,transparent> 구분 ||<width=20%> {{{#blue c==null}}} ||<width=20%> {{{#orange c==""}}} ||<width=20%> c=={{{#gray ''(space)''}}} ||<width=20%> c="{{{#gray ''(space)''}}}" ||
74
|| 출력테스트 || {{{#!if c==null
75
출력}}} || {{{#!if c==""
76
출력}}} || {{{#!if c==
77
출력}}} || {{{#!if c==" "
7678
출력}}} ||
77
|| ="" || {{{#!if c==""
78
출력}}} ||
79
|| ={{{#gray ''(space)''}}} || {{{#!if c==
80
출력}}} ||
81
|| c="{{{#gray ''(space)''}}}" || {{{#!if c==" "
82
출력}}} ||
8379
8480
== this 함수 ==
85
===# this \[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\] #===
81
===# this \[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\] 관련 테스트 #===
8682
this['true']=true 테스트
8783
{{{#!if this['true']==true
8884
출력 }}}
......
122118
{{{#orange 결론 : }}} {{{#!wiki style="display: inline; font-family: monospace;"
123119
this\[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\]}}}는 텍스트 값으로 출력된다.
124120
125
===# this \[{{{#orange \+}}}{{{#green 변수명}}}\] #===
121
=== this 관련 테스트 ===
126122
{{{#!wiki style="display: inline; font-family: monospace;"
127123
this}}} 함수 안에 {{{#!wiki style="display: inline; font-family: monospace;"
128
{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}}}} 스트 값으로 부르문이라 가정한면, {{{#!wiki style="display: inline; font-family: monospace;"
129
this}}} 안에 다른 모양을 넣고 테스트를 해보는 문단이다.
130
이 문단에서는 {{{#!wiki style="display: inline; font-family: monospace;"
131
this\[{{{#orange \+}}}{{{#green 변수명}}}\]}}} 형식을 테스트해본다.
132
----
133
if this[+a]=1 테스트
134
{{{#!if this[+a]==1
135
출력}}}
136
----
137
if this[+a]='1' 테스트
138
{{{#!if this[+a]=='1'
139
출력}}}
140
----
141
if this[+a]="1" 테스트
142
{{{#!if this[+a]=="1"
143
출력}}}
144
----
145
if this[-a]=-1 테스트
146
{{{#!if this[-a]==-1
147
출력}}}
124
{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}}}} 포함하여 {{{this}}} 함안에 다른 모양을 넣고 테스트 해보는 문이다.
125
{{{#!wiki style="display: inline; font-family: monospace;"
126
this\[{{{#orange \+}}}{{{#green 명}}}\]}}}과, {{{#!wiki style="display: inline; font-family: monospace;"
127
this\[{{{#green 변수명}}}\]}}} 지원되는지 테스트, this{{{#orange .}}}{{{#green 변수명}}} 스트값으로만 있는지 테스트.
148128
149
a=1 입력부분 결과를 보면 위의 식 4개 어디에도 출력이 나오지 않는다.
150
151
{{{#orange 결론}}} : 실수값으로도 텍스트 값으로도 일치하지 않는 점에서 {{{#!wiki style="display: inline; font-family: monospace;"
152
this\[{{{#orange \+}}}{{{#green 변수명}}}\]}}}은 올바른 입력이 아니다.
153
154
===# this \[{{{#green 변수명}}}\] #===
155
이 문단에서는 {{{#!wiki style="display: inline; font-family: monospace;"
156
this\[{{{#green 변수명}}}\]}}} 형식을 테스트해본다.
157
----
158
if this[a]=1 테스트
159
{{{#!if this[a]==1
160
출력}}}
161
----
162
if this[a]='1' 테스트
163
{{{#!if this[a]=='1'
164
출력}}}
165
----
166
if this[a]="1" 테스트
167
{{{#!if this[a]=="1"
168
출력}}}
169
170
a=1 입력부분 결과를 보면 위의 식 3개 어디에도 출력이 나오지 않는다.
171
172
{{{#orange 결론}}} : 실수값으로도 텍스트 값으로도 일치하지 않는 점에서 {{{#!wiki style="display: inline; font-family: monospace;"
173
this\[{{{#green 변수명}}}\]}}}도 올바른 입력이 아니다.
174
175
===# this \[{{{#orange \"}}}{{{#green 변수명}}}{{{#orange \"}}}\] #===
176
작은따옴표로 된다면 큰따옴표로는 되는지 테스트.
177
if this["a"]=1 테스트
178
{{{#!if this["a"]==1
179
출력}}}
180
----
181
if this["a"]='1' 테스트
182
{{{#!if this["a"]=='1'
183
출력}}}
184
----
185
if this["a"]="1" 테스트
186
{{{#!if this["a"]=="1"
187
출력}}}
188
189
a=1 입력부분 결과를 보면 텍스트 값으로 출력이 나온다.
190
191
{{{#orange 결론 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
192
this\[{{{#orange \"}}}{{{#green 변수명}}}{{{#orange \"}}}\]}}}은 {{{#!wiki style="display: inline; font-family: monospace;"
193
this\[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\]}}}와 마찬가지로 텍스트 값으로 출력된다.
194
195
=== this{{{#orange .}}}{{{#green 변수명}}} 테스트 ===
196
텍스트값으로만 될 수 있는지 테스트.
197
198129
기준모양 : this.a == 1
199130
---다음은 기출변형 표이다.---
200
||<table bgcolor=transparent,transparent> 구분 || this.a || +this.a || -this.a || "this.a" || [this.a] ||
131
||<table bgcolor=transparent,transparent> 구분 || this.a || +this.a || -this.a || "this.a" || [this.a] || this['a'] || this["a"] || this[+a] || this[a] ||
201132
|| ==1[* 단, -this.a 에는 -this.a==-1로 걸어놓음.] || {{{#!if this.a==1
202133
출력}}} || {{{#!if +this.a==1
203134
출력}}} || {{{#!if -this.a==-1
204135
출력}}} || {{{#!if "this.a"==1
205136
출력}}} || {{{#!if [this.a]==1
137
출력}}} || {{{#!if this['a']==1
138
출력}}} || {{{#!if this["a"]==1
139
출력}}} || {{{#!if this[+a]==1
140
출력}}} || {{{#!if this[a]==1
206141
출력}}} ||
207142
|| =='1' || {{{#!if this.a=='1'
208143
출력}}} || {{{#!if +this.a=='1'
209144
출력}}} || {{{#!if -this.a=='1'
210145
출력}}} || {{{#!if "this.a"=='1'
211146
출력}}} || {{{#!if [this.a]=='1'
147
출력}}} || {{{#!if this['a']=='1'
148
출력}}} || {{{#!if this["a"]=='1'
149
출력}}} || {{{#!if this[+a]=='1'
150
출력}}} || {{{#!if this[a]=='1'
212151
출력}}} ||
213152
|| =="1" || {{{#!if this.a=="1"
214153
출력}}} || {{{#!if +this.a=="1"
215154
출력}}} || {{{#!if -this.a=="1"
216155
출력}}} || {{{#!if "this.a"=="1"
217156
출력}}} || {{{#!if [this.a]=="1"
157
출력}}} || {{{#!if this['a']=="1"
158
출력}}} || {{{#!if this["a"]=="1"
159
출력}}} || {{{#!if this[+a]=="1"
160
출력}}} || {{{#!if this[a]=="1"
218161
출력}}} ||
219162
220163
결과에서 a=1 문단 참조.
221
{{{#orange 결론 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
164
{{{#orange 결론 1 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
165
this\[{{{#orange \"}}}{{{#green 변수명}}}{{{#orange \"}}}\]}}}(큰따옴표)은 {{{#!wiki style="display: inline; font-family: monospace;"
166
this\[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\]}}}(작은따옴표)와 마찬가지로 텍스트 값으로 출력된다.
167
{{{#orange 결론 2 :}}} 실수값으로도 텍스트 값으로도 일치하지 않는 점에서 {{{#!wiki style="display: inline; font-family: monospace;"
168
this\[{{{#orange \+}}}{{{#green 변수명}}}\]}}}, {{{#!wiki style="display: inline; font-family: monospace;"
169
this\[{{{#green 변수명}}}\]}}}은 올바른 입력이 아니다.
170
{{{#orange 결론 3 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
222171
this{{{#orange .}}}{{{#green 변수명}}}}}}은 양식만 잘 맞추면 숫자값으로 또는 텍스트값으로 나오게 할 수 있다.
223172