| r28 vs r29 | ||
|---|---|---|
| ... | ... | |
| 69 | 69 | 출력}}} || |
| 70 | 70 | |
| 71 | 71 | == 변수 c\= == |
| 72 | null과 "" | |
| 73 | ||
| 74 | ||<table bgcolor=transparent,transparent> 구분 || c= || | |
| 75 | || =null || {{{#!if c== | |
| 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==" " | |
| 76 | 78 | 출력}}} || |
| 77 | || ="" || {{{#!if c=="" | |
| 78 | 출력}}} || | |
| 79 | || ={{{#gray ''(space)''}}} || {{{#!if c== | |
| 80 | 출력}}} || | |
| 81 | || c="{{{#gray ''(space)''}}}" || {{{#!if c==" " | |
| 82 | 출력}}} || | |
| 83 | 79 | |
| 84 | 80 | == this 함수 == |
| 85 | ===# this \[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\] #=== | |
| 81 | ===# this \[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\] 관련 테스트 #=== | |
| 86 | 82 | this['true']=true 테스트 |
| 87 | 83 | {{{#!if this['true']==true |
| 88 | 84 | 출력 }}} |
| ... | ... | |
| 122 | 118 | {{{#orange 결론 : }}} {{{#!wiki style="display: inline; font-family: monospace;" |
| 123 | 119 | this\[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\]}}}는 텍스트 값으로 출력된다. |
| 124 | 120 | |
| 125 | === | |
| 121 | === this 관련 테스트 표 === | |
| 126 | 122 | {{{#!wiki style="display: inline; font-family: monospace;" |
| 127 | 123 | this}}} 함수 안에 {{{#!wiki style="display: inline; font-family: monospace;" |
| 128 | {{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}}}} | |
| 129 | this}}} | |
| 130 | ||
| 131 | this\[{{{# | |
| 132 | ||
| 133 | ||
| 134 | {{{# | |
| 135 | ||
| 136 | ||
| 137 | ||
| 138 | {{{# | |
| 139 | ||
| 140 | ||
| 141 | ||
| 142 | ||
| 143 | ||
| 144 | ||
| 145 | ||
| 146 | ||
| 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 변수명}}}이 텍스트값으로만 될 수 있는지 테스트. | |
| 148 | 128 | |
| 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 | ||
| 198 | 129 | 기준모양 : this.a == 1 |
| 199 | 130 | ---다음은 기출변형 표이다.--- |
| 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] || | |
| 201 | 132 | || ==1[* 단, -this.a 에는 -this.a==-1로 걸어놓음.] || {{{#!if this.a==1 |
| 202 | 133 | 출력}}} || {{{#!if +this.a==1 |
| 203 | 134 | 출력}}} || {{{#!if -this.a==-1 |
| 204 | 135 | 출력}}} || {{{#!if "this.a"==1 |
| 205 | 136 | 출력}}} || {{{#!if [this.a]==1 |
| 137 | 출력}}} || {{{#!if this['a']==1 | |
| 138 | 출력}}} || {{{#!if this["a"]==1 | |
| 139 | 출력}}} || {{{#!if this[+a]==1 | |
| 140 | 출력}}} || {{{#!if this[a]==1 | |
| 206 | 141 | 출력}}} || |
| 207 | 142 | || =='1' || {{{#!if this.a=='1' |
| 208 | 143 | 출력}}} || {{{#!if +this.a=='1' |
| 209 | 144 | 출력}}} || {{{#!if -this.a=='1' |
| 210 | 145 | 출력}}} || {{{#!if "this.a"=='1' |
| 211 | 146 | 출력}}} || {{{#!if [this.a]=='1' |
| 147 | 출력}}} || {{{#!if this['a']=='1' | |
| 148 | 출력}}} || {{{#!if this["a"]=='1' | |
| 149 | 출력}}} || {{{#!if this[+a]=='1' | |
| 150 | 출력}}} || {{{#!if this[a]=='1' | |
| 212 | 151 | 출력}}} || |
| 213 | 152 | || =="1" || {{{#!if this.a=="1" |
| 214 | 153 | 출력}}} || {{{#!if +this.a=="1" |
| 215 | 154 | 출력}}} || {{{#!if -this.a=="1" |
| 216 | 155 | 출력}}} || {{{#!if "this.a"=="1" |
| 217 | 156 | 출력}}} || {{{#!if [this.a]=="1" |
| 157 | 출력}}} || {{{#!if this['a']=="1" | |
| 158 | 출력}}} || {{{#!if this["a"]=="1" | |
| 159 | 출력}}} || {{{#!if this[+a]=="1" | |
| 160 | 출력}}} || {{{#!if this[a]=="1" | |
| 218 | 161 | 출력}}} || |
| 219 | 162 | |
| 220 | 163 | 결과에서 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;" | |
| 222 | 171 | this{{{#orange .}}}{{{#green 변수명}}}}}}은 양식만 잘 맞추면 숫자값으로 또는 텍스트값으로 나오게 할 수 있다. |
| 223 | 172 |