String length
The length property of a String object contains the length of the string, in UTF-16 code units. length is a read-only data property of string instances.
The toUpperCase() method returns the calling string value converted to uppercase (the value will be converted to a string if it isn't one).
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
첫번째 글자는 0부터 세야함
1+1은 숫자로 인식돼서 2로 계산되지만
"1"+"1"은 문자로 인식돼서 "11"로 나오는것
'Programming > JavaScript 0' 카테고리의 다른 글
WEB2 JavaScript - 12. Selecting a tag to control (0) | 2020.09.04 |
---|---|
WEB2 JavaScript - 8. Controlling a Web Browser (0) | 2020.09.04 |
WEB2 JavaScript - 7. Variables and Assignment Operators (0) | 2020.09.04 |
WEB2 JavaScript - 3. HTML meets JS: Console (0) | 2020.09.04 |
WEB2 JavaScript - 4. HTML meets JS: Event (0) | 2020.09.04 |