본문 바로가기

javascript/study3

[json] 코드를 api로 전달하기 드림코딩 10강 Json - savascript object notation (Javascript object와 관련된 파일 , data format){ key : value }사용처  - 브라우저, 모바일, 파일  // 1. Object -> JSON// stringify(obj)let json = JSON.stringify(true); // truelet fruits = JSON.stringify(['apple', 'banana']); // ["apple","banana"]let rabbit = { name : "tory", color : "white", birthDate : new Date(), // "2024-09-22 T13:3.. 2024. 9. 22.
[react] 기본 javascript 내용 정리 Object shorthand Assignmentlet name = "moon";let age = "20";let person = { name: name, age: age}let person = {name, age}console.log (person); //{name:"moon", age:"20"} Distructuring = 분해하다let person = { name : "moon", age: "20" } let name = person.name let age =person['age'] let {name, age} = person let array = [1,2,3,4] let [a,b] = array // [1,2] let [a,b,...rest] = array2 //[3,4] spreadlet pe.. 2024. 9. 6.
[react] feat.코딩애플 개발과 세팅최신버전 node.js 설치vscode에서 open folder 로 폴더 열기terminal 열어서 npx create-react-app ** (프로젝트명)해당 폴더로 열어서 app.js에서 작업 더보기Help!npm error enoent ENOENT: no such file or directory, ....npm error A complete log of this run can be found in: bolier plate 설치하는데 몇번의 오류가 있었는데다음의 과정을 거쳐서 다운이 가능했다. npm install -g create-reate-app 요렇게도 쳐보고,node -v 로 버전 확인npx create-react-app  먼저 치고 proceed 할거냐 물어봐서 y후에 Please.. 2024. 9. 3.