Whiteship's Note

JavaScript For Loop와 While Loop

AJAX/JavaScript : 2007. 7. 9. 12:54

참조 : http://www.w3schools.com/js/js_loop_for.asp

for 문 예제
<script type="text/javascript">
for (i = 1; i <= 6; i++)
document.write("<h" + i + ">This is header " + i)
document.write("</h" + i + ">")

while 문 예제
<script type="text/javascript">
i = 0
while (i <= 5)
document.write("The number is " + i)

do-while 문 예제
<script type="text/javascript">
var i=0
document.write("The number is " + i)
document.write("<br />")
while (i<0)

자바랑 동일하기 때문에 pass

'AJAX > JavaScript' 카테고리의 다른 글

JavaScript Special Characters  (0) 2007.07.09
JavaScript The onerror Event  (2) 2007.07.09
JavaScript Throw Statement  (0) 2007.07.09
JavaScript Try...Catch Statement  (0) 2007.07.09
JavaScript Events  (2) 2007.07.09
JavaScript For Loop와 While Loop  (1) 2007.07.09
JavaScript Functions  (0) 2007.07.09
JavaScript Popup Boxes  (0) 2007.07.09
JavaScript Operators  (0) 2007.07.09
JavaScript If...Else와 Switch Statement  (0) 2007.07.09
JavaScript Variables  (0) 2007.07.09

  1. Favicon of http://www.moncleroutletespain.com/ BlogIcon moncler outlet 2013.01.04 12:24 PERM. MOD/DEL REPLY

    There are numerous travel companies that provide discounted airfares and tours aimed at students. In many cases, http://www.moncleroutletespain.com/ moncler chaquetas, such packages are not flexible when the talk is about selecting tour dates for the tour is a component of a bigger package set up only for students, http://www.moncleroutletespain.com/ moncler online. There may be limitations on round-trips and the amount of days between departure flights and return flights as part of the special packages, http://www.moncleroutletespain.com/ moncler españa.Another great place to seek is websites specializing in student tour and discounted airfares, http://www.moncleroutletespain.com/ http://www.moncleroutletespain.com/. They concentrate on one-way destination student airway tickets, http://www.moncleroutletespain.com/ moncler outlet, as many students are searching for this kind of deal for they hesitant when they may be coming back, http://www.moncleroutletespain.com/ moncler.Related articles:

    http://stevejungs.tistory.com/20 http://stevejungs.tistory.com/20

    http://aochfl.tistory.com/83 http://aochfl.tistory.com/83

Write a comment.