일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- 스크롤이벤트
- mainapplication.kt
- 슬라이딩윈도우
- 상속
- err_connection_refused
- app.post
- Spring
- 안드로이드빌드에러
- reactnative
- app:compiledebugkotlin
- interface
- 리액트네이티브아이콘
- set
- extends
- react
- Next.js
- 배열중복요소제거
- async
- 타입스크립트
- map
- forwardref type
- 이진탐색
- generic
- array
- TS
- javascript
- materialicons
- npm에러
- Filter
- reactnative error
- Today
- Total
목록array (2)
rhanziy
'use strict'; { // 배열 값을 join하여 출력, join(seperator)는 optional // 배열의 모든 요소를 연결해 하나의 문자열로 만든다. const fruits = ['apple','banana','orange']; const result = fruits.join(' and '); console.log(result); } { // make an array out of a string 문자열을 배열로 변환 // seperator 필수! 어떤걸 기준으로 쪼갤지 // limit은 optional > 출력 개수 const fruits = '🍕,🍔,🍟,🌭'; const result = fruits.split(','); console.log(result); } { // make thi..
const toBuy = ["potato", "tomato", "pizza"]; // list는 [] console.log(toBuy); console.log(toBuy.length); toBuy[3] = "olive"; // 배열의 개수를 알때, index는 0,1,2. . . 순서다. console.log(toBuy); toBuy.push("cheeze"); // 배열의 마지막에 값을 넣을때! console.log(toBuy); 'use strict'; // Array 🎉🎉 // 1. Declaration const arr1 = new Array(); const arr2 = [1, 2]; // 2. Index position const fruits = [ '🍎', '🍌' ]; console.log(f..