코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>JavaScript Iteration Statement</title> </head> <body> <h1>for / of 문</h1> <script> var arr = new Set([1, 1, 2, 2, 3, 3]); for (var value of arr) { document.write(value + " "); } </script> </body> </html>