전체 글
-
Error 종류JavaScript/Basic 2022. 12. 29. 19:39
에러의 3가지 스타일 1. 존재하지 않는 변수나 함수를 호출했을 때 Uncaught ReFerenceEror // 에러와 에러 객체 console.log('시작'); const coffee ='아메리카노'; console.log(coffee); console.log(size); console.log('끝') index.js:7 Uncaught ReferenceError: size is not defined 2. 함수가 아닌 것을 함수처럼 사용하였을 떄 Uncaught TypeError: // 에러와 에러 객체 console.log('시작'); const coffee = '아메리카노'; console.log(coffee()); console.log(size); console.log('끝') index.js..
-
Machine_Learnin카테고리 없음 2022. 12. 28. 19:43
# 머신러닝(machine_learning) - 프로그래밍 하지 않아도 컴퓨터가 스스로 학습하는 능력이 있게 하는 컴퓨터의 하위 분야 - 지도, 비지도, 강화 학습 3가지 유형으로 나뉜다 1) 지도학습(Supervised) - 데이터에 label이 같이 붙어 있다 - 회귀(regression)와 분류(classification) 로 나누어 질 수 있다. 예를 들어 회귀(Regression)는 어떤 사람의 교육 수준, 나이 등을 이용해 연봉을 예측하는 것 분류(Classification)는 일반메일 또는 스팸메일인지 예측하는 것 - 지도학습 알고리즘으로는 선형회귀(Linear Regression), 로지스틱 회귀(Logistic Regression), KNN(K-nearest Neighbors), 결정트리..
-
실습 - Request보내기카테고리 없음 2022. 12. 26. 23:25
# 학습용 URL : https://learn.codeit.kr/api/members (1) 전체 직원 정보 조회 - GET (2) 특정 직원 정보 조회 - GET (3) 새 직원 정보 추가 - POST (4) 기존 직원 정보 수정 - PUT (5) 기존 직원 정보 삭제 - DELETE ============================= (2) 특정 직원 정보 조회 - GET (4) 기존 직원 정보 수정 - PUT (5) 기존 직원 정보 삭제 - DELETE 이 작업들을 수행할 때는 작업의 대상이 되는 직원 정보를 특정할 수 있도록 URL 끝에 아래와 같은 고유 식별자를 붙여줘야 합니다. (직원의 id 값입니다.) https://learn.codeit.kr/api/members/3 지금 이 URL은 3..
-
자바스크립트 객체 표기법 vs JSON(JavaScript Object Notation)JavaScript/Webdevelopment 2022. 12. 26. 19:13
JSON [ { "id": 1, "name": "Leanne Graham", "username": "Bret", "email": "Sincere@april.biz", "address": { "street": "Kulas Light", "suite": "Apt. 556", "city": "Gwenborough", "zipcode": "92998-3874", "geo": { "lat": "-37.3159", "lng": "81.1496" } }, "phone": "1-770-736-8031 x56442", "website": "hildegard.org", "company": { "name": "Romaguera-Crona", "catchPhrase": "Multi-layered client-server ne..
-
StateJavaScript/React 2022. 12. 23. 09:03
state - 내부에서 바뀔 수 있는 값을 의미 1. 클래스형 컴포넌트가 가지고 있는 state 2. 함수 컴포넌트에서 가지고 있는 useState라는 함수를 통해 사용하는 state 클래스형 컴포넌트의 State 실습1 // counter.js import { Component } from 'react'; class Counter extends Component { constructor(props){ super(props); // state의 초깃값 설정하기 this.state = { number:0 }; } render(){ const { number } = this.state; return ( {number} { // this.setState를 사용하여 새로운 값 할당 this.setState({ ..
-
컴포넌트(Component) - 클래스 VS 함수카테고리 없음 2022. 12. 21. 19:17
함수형 컴포넌트(Function Component) VS 클래스형 컴포넌트(Class Component) 1. class 키워드 필요 2. Component로 상속을 받아야한다. 3. render() 메소드가 반드시 필요하다. 4. state, lifeCycle 관련 기능사용이 가능하다. 5. 함수형보다 메모리 자원을 더 사용한다. 6. 임의 메소드를 정의할 수 있다. import {Component} from 'react'; import PropTypes from 'prop-types'; class MyComponent extends Component{ render(){ const {name, favoriteNumber, children} = this.props; // 비구조화 할당 return( 안녕..
-
둥근모서리&배경색&그림자카테고리 없음 2022. 12. 20. 20:05
둥근모서리 - border-radius라 ㅇ .div2 { border: 1px solid green; border-radius: 30px; } 는ㅇㅇ 개별 설정 h1 { border: 1px solid green; border-top-left-radius: 50px; /* 왼쪽 위 */ border-top-right-radius: 5px; /* 오른쪽 위 */ border-bottom-right-radius: 0px; /* 오른쪽 아래 */ border-bottom-left-radius: 20px; /* 왼쪽 아래 */ } 배경색 - backgroud-color - 색 이름, RGB코드, HEX코드 중 하나를 입력 h1 { background-color: #4d9fff; } 그림자 - box-shado..