데이터 타입 배열(Array) #34
seonae-j
started this conversation in
JavaScript
Replies: 1 comment
-
JavaScript 데이터 구조 : array(배열) const fruit = ["strawberry", "watermelon", "banana"]; 배열이 없을 때
만들어둔 배열 안에 새 데이터값 추가하고 싶을 때
전체 연습 코드 const fruit = ["strawberry", "watermelon", "banana"];
fruit.push("orange");
console.log(fruit); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
배열(Array)
순서
순서가 존재하는 여러 개의 데이터를 다룸
배열 정의 방법 : 대괄호 [ ]
데이터를 배열할 때 변수 공간에 담아줘야 한다.
요소(element)
인덱스(index)
속성(Property)
Beta Was this translation helpful? Give feedback.
All reactions