DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript Iterate Sets
const
set
=
new
Set
(
[
1
,
2
,
3
]
)
;
// looping through Set
for
(
let
i
of
set
)
{
console
.
log
(
i
)
;
}
PREVIOUS
NEXT
Tagged:
#javascript
#Iterate
#Sets
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit