Editor Arrow Download Open
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript for..of iterate of an Sets</title> </head> <body> <script type="text/javascript"> // Press F12 - View result on Console Panel var set = Set([10, 20, 30, 40, 50]); for (var val of set) { console.log(val); // result 10, 20, 30, 40, 50 } </script> </body> </html>
  Preview Arrow