String - concat() > SCRIPT

본문 바로가기

사이트 내 전체검색

뒤로가기 SCRIPT

String - concat()

본문

<script>

var hello = new String("아린이는 ");

var str = hello.concat("이쁘다.");

document.write(str);

document.write("<hr>");

var a = "아린이는 ";

var b = "이쁘다.";

var c = a.concat(b);

document.write(c);

document.write("<hr>");

document.write(a + b);

</script>


==== tip ====

concat() 메소드는 "아린이는 " 와 "이쁘다." 를 연결한 후 리턴하는 메소드

추천0 비추천 0

댓글목록 0

등록된 댓글이 없습니다.


Copyright © dancePKT. All rights reserved.
PC 버전으로 보기