32์ฅ String
32.1 String ์์ฑ์ ํจ์
const strObj = new String();
console.log(strObj); // String {length: 0, [[PrimitiveValue]]: ""}
const strObj2 = new String('Han');
console.log(strObj2); // {0: "H", 1: "a", 2: "n", length: 3, [[PrimitiveValue]]: "Han"}let strObj = new String(123);
console.log(strObj)
//String {0: "1", 1: "2", 2: "3", length: 3, [[PrimitiveValue]]: "123" }
strObj = new String(null);
console.log(strObj);
//String {0: "n", 1: "u", 2: "l", 3: "l", length: 4, [[PrimitiveValue]]: "null"}32.1 length ํ๋กํผํฐ
32.3 String ๋ฉ์๋
32.3.1 String.prototype.indexOf
32.3.2 String.prototype.search
32.3.3 String.prototype.includes
32.3.4 String.prototype.startsWith
32.3.5 String.prototype.endsWith
32.3.6 String.prototype.charAt
32.3.7 String.prototype.substring
32.3.8 String.prototype.slice
32.3.9 String.prototype.toUpperCase
32.3.10 String.prototype.toLowerCase
32.3.11 String.prototype.trim
32.3.12 String.prototype.repeat
32.3.13 String.prototype.replace
32.3.14 String.prototype.split
Last updated