String - replace() , toUpperCase() , toLowerCase()
본문
<script>
var every = "Boys and Girls";
var a = every.replace("and", "or"); // a를 b로 변경
var b = every.toUpperCase(); //대문자로 변경
var c = every.toLowerCase(); //소문자로 변경
document.write(a + "<br>");
document.write(b + "<br>");
document.write(c + "<br>");
</script>
추천0 비추천 0
댓글목록 0
등록된 댓글이 없습니다.