crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Sets</h2> <p>entries() Returns an Iterator with [value,value] pairs from a Set:</p> <p id="demo"></p> <script> // Create a Set const letters = new Set(["a","b","c"]); // List all entries const iterator = letters.entries(); let text = ""; for (const entry of iterator) { text += entry + "<br>"; } document.getElementById("demo").innerHTML = text; </script> </body> </html>
JavaScript Sets
entries() Returns an Iterator with [value,value] pairs from a Set: