728x90
var test = []
test['0011'] = 'testdata';
console.log("test출력")
console.log(test)

저렇게 사용자가 key값 value 값을 지정하여 key는 좌측 값은 우측에 두어 설정할 수 있다.
728x90
'JavaScript' 카테고리의 다른 글
[vue.js] visual studio code (VS code) 설치하기 및 Vue 프로젝트 생성 (0) | 2023.08.16 |
---|---|
svg d3 도형 (0) | 2021.12.09 |
[Node.js] 시퀄라이즈 where/ OP. (0) | 2021.09.29 |
[Node.js] sequelize.import is not a function error 에러 해결 (0) | 2021.09.08 |
[Node.js] Browserslist: caniuse-lite is outdated. Please run 오류 (0) | 2021.09.08 |