Created
September 11, 2018 15:28
-
-
Save hillal20/22c42a269e918e3ffa87b32fcd4668f3 to your computer and use it in GitHub Desktop.
set vs obj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let numbers = [1,5,3,6,3,3,1] | |
let st = new Set(numbers) | |
console.log(st) | |
for ( let i of st ){ | |
console.log(i) | |
} | |
console.log('billal') | |
let obj = { bill:"b", hill:'h'} | |
for ( let i in obj){ | |
console.log(i) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment