티스토리 뷰
React...
폴더를 만들고 ref 코드를 뜯어보며 이해하려 노력 중...😂
✔️ 비구조화 할당 Destructuring Assignment
배열의 비구조화할당
배열이나 객체의 속성 혹은 값을 해체하여 그 값을 변수에 각각 담아 사용하는 자바스크립트 표현식
- 배열 선언 및 호출 문법
const [변수명1, 변수명2, 변수명3] = [값1, 값2, 값3];
- Spread Operator
var 새로운객체명 = {...기존객체명};
var 새로운배열명 = [...기존배열명];
// obj 객체를 newObj 객체에 복제
var obj = {
a: 10,
b: 20
};
var newObj = {...obj};
console.log(newObj); // {a: 10, b: 20}
// arr 배열을 newArr 배열에 복제
var arr = [1,2,3];
var newArr = [...arr];
console.log(newArr); // [1, 2, 3]
객체의 비구조화할당
- 객체 선언과 호출 문법
const {변수명1,변수명2,변수명3} = {
속성명1: 값1,
속성명2: 값2,
속성명3: 값3
};
const { cat2, dog2, tiger2 } = {
cat2: 'CAT',
dog2: 'DOG',
tiger2: 'TIGER'
};
chmod 명령어를 사용하여 파일 또는 디렉토리(폴더)에 권한을 부여, 수정할 수 있습니다.
The first "root" stands for user name and second "root" stands for the group name. By design, Ubuntu uses "sudo" command to run other commands "as root", and the actual root user is not used.So what that means, every time you use the command sudo to run a command, it is actually being done as root. That's most likely the reason for the two of your files being owned by root (and the group root).You can change the ownership of the file with command chown:
chown root:root file3.xsd
755 의미? 소유자는 읽기/쓰기/실행하기 가능하고 소속 그룹 및 그외 유저/그룹은 읽고 실행하기가 가능함
👊🏻 오늘 한 일
- 11:30 [프로그래머스] 31. 같은 숫자는 싫어
- 12:30 ~ 2:30 등 웨이트, 스트레칭
- 3:30 ~ [노마드코더] React 강의 7-2
- React_To do List 폴더 setting, github ref 뜯어보기
- Ecma Script, ES5/ES6 문법 정리
- yarn vs npm, sudo, chown 등 brief
- Algorithm repo 다시 만들기 & [프로그래머스] level1_01 file push
😲 오늘 느낀 점
시간이 왜 이렇게 빨리 가는지 모르겠다. 뭔가 열심히 한 것 같은데 아직 할 게 너무 많이 남았다. 리액트 폴더를 세팅하고 코드들을 한 줄씩 뜯어보고 있는데 이렇게 하는 게 맞는지 아직 모르겠다... 내일 일어나서 하루종일 TodoList 만들기에 전념해야겠다.
👏🏻 오늘의 칭찬
운동, 식사 시간 외 쉬는 시간을 줄였음
🤔 오늘 아쉬운 점
중간에 집중력이 흐트러진 것 같다.
⛵️ 내일 할 일
- [프로그래머스] 32. 두 개 뽑아서 더하기
- 11시 [혼공자] 언어스터디 7-2 이벤트 활용
- React 개인 과제 - to do list 🌟
- React 팀 과제 질문 6개 정리 ⭐️
- [혼공자] 8 예외처리 발표 준비
- Algorithm repo 이전 문제들 push
- [모자딥] Ch 1 ~ 2
- Git youtube
+ More
vs code- alt+화살표, flask 등
'Edu_hanghae99 > WIL' 카테고리의 다른 글
[WIL] 221225 (0) | 2022.12.25 |
---|---|
[WIL] Axios (0) | 2022.12.18 |
[WIL] React - LifeCycle, Hooks (0) | 2022.12.11 |
[WIL] Algorithm Study_221120 (0) | 2022.11.21 |
[WIL] 항해99 Pre-Onboarding 일주일 회고_221113 (0) | 2022.11.14 |