#python
website = (
"google.com",
"airbnb.com",
"twitter.com",
"facebook.com"
)
for item in website:
print(item)
#javascript(to-be)
let website = ["facebook.com","google.com","airbnb.com","twitter.com"];
website.forEach(item => {console.log(item)})
#javascript(as-is)
for (let i=0; i<website.length; i++) {
console.log(website[i]);
}
'STUDY' 카테고리의 다른 글
python (0) | 2022.09.01 |
---|---|
python - (0) | 2022.08.30 |
python data structures (0) | 2022.08.30 |