Tag: String

0

JavaScript String

JavaScript String 1. String Constructor String 객체는 String() 생성자 함수를 통해 생성할 수 있다. 이때 전달된 인자는 모두 문자열로 변환된다. new를 넣지 않는다면 그냥 문자로만 변환한다. 12345678var x = 'Lee';var y = new String('Lee