카테고리 없음
console.log {딕셔너리}: 키(key)-밸류(value)
WEB_CREASTORY
2023. 6. 30. 10:56
<script>
let a = {'name':'영수','age':27}
console.log(a)
</script>
<script>
let a = {'name':'영수','age':27}
console.log(a['name'])
</script>
<script>
let a = [
{'name':'영수','age':27},
{'name':'철수','age':15},
{'name':'영희','age':20}
]
console.log(a)
</script>
<script>
let a = [
{'name':'영수','age':27},
{'name':'철수','age':15},
{'name':'영희','age':20}
]
console.log(a[0]['name'])
</script>