Cute Happy Ghost
본문 바로가기
728x90
SMALL

전체 글405

! [rejected] main -> main (fetch first)error: failed to push some refs to 에러, 강제push명령어 warning: redirecting to https://github.com/Jenn-tech/Frontend/ To http://github.com/Jenn-tech/Frontend ! [rejected] main -> main (fetch first) error: failed to push some refs to 'http://github.com/Jenn-tech/Frontend' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may .. 2020. 11. 17.
20201116_36 박스움직이기, 순회하며 수정 순회하며 전체수정하기(콘솔창에서) const boxes = document.querySelectorAll('.box') undefined boxes NodeList(3) [div.box.b1, div.box.b2, div.box.b3] for(item of boxes){ item.style.backgroundColor = 'red' } "red" for(item of boxes){ item.style.border = '5px solid black' } "5px solid black" 1뎁스 =1 1뎁스 =2 1뎁스 =3 1뎁스 =4 2뎁스-1 2뎁스-2 3뎁스-1 3뎁스-2 3뎁스-3 4뎁스 -1 4뎁스 -2 4뎁스 -3 1뎁스-5 2뎁스 root ​…​​ root.childNodes NodeList(1.. 2020. 11. 16.
20201113_ 35 노드2 index.html 이게되나? 서버에서 정보받기 아이디 이름 데이터 시간 index.js //express 프레임워크 임포트 const express = require("express") const app = express() const PORT = 6600//포트 번호 //미들웨어 추가 app.use(express.static('./static')) //더미 데이터 //경로 : /data //요청 HTTP 메서드 : GET app.get('/data', (req, res) => { const data = { id: '124125125', name: 'Chiho Won', myData: [1, 2, 3, ], timestamp: new Date(), } // data 객체를 json으로 서빙해줌 // J.. 2020. 11. 13.
20201113_ 35 클로저.. function sayHelloTo(name) { const message = `Hello ${name}!` return function (){ console.log(message) } } const hello1 = sayHelloTo('chiho won') const hello2 = sayHelloTo('test') const hello3 = sayHelloTo('asdf') hello1() hello2() hello3() Hello chiho won! Hello test! Hello asdf!​ function countdown(startAt) { let data = startAt; function counter() { console.log(data--) } return counter } const .. 2020. 11. 13.
20201113_35 노드생성 web이라는 하위폴더생성 web으로 이동해서 npm init해줌 PS C:\Users\wotjd\Frontend> cd 20201113 PS C:\Users\wotjd\Frontend\20201113> cd web PS C:\Users\wotjd\Frontend\20201113\web> npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults. See `npm help init` for definitive documentation on these fields and exactly what they .. 2020. 11. 13.
2869 달팽이는 올라가고 싶다 문제땅 위에 달팽이가 있다. 이 달팽이는 높이가 V미터인 나무 막대를 올라갈 것이다.달팽이는 낮에 A미터 올라갈 수 있다. 하지만, 밤에 잠을 자는 동안 B미터 미끄러진다. 또, 정상에 올라간 후에는 미끄러지지 않는다.달팽이가 나무 막대를 모두 올라가려면, 며칠이 걸리는지 구하는 프로그램을 작성하시오.입력첫째 줄에 세 정수 A, B, V가 공백으로 구분되어서 주어진다. (1 ≤ B < A ≤ V ≤ 1,000,000,000)출력첫째 줄에 달팽이가 나무 막대를 모두 올라가는데 며칠이 걸리는지 출력한다. import java.util.Scanner; public class Al1 { public static void main(String[] args) { Scanner in = new Scanner(Syst.. 2020. 11. 13.
Invalid shorthand property initializer에러 const user = { id = 'abcdef', name : 'Chiho Won', data : [1,2,3,4], } const {id, name, data} = user console.log(id) console.log(name) console.log(data) SyntaxError: Invalid shorthand property initializer at wrapSafe (internal/modules/cjs/loader.js:979:16) at Module._compile (internal/modules/cjs/loader.js:1027:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Modul.. 2020. 11. 13.
20201112_ 34 기본 click dom에서 btn-alert라는 id의 dom을 찾음 btn.addEventListener('click', onClickHandler); function onClickHandler() { alert('마우스 클릭!!'); } 람다식에 익숙치 않으면. 이게 더 이해간다고 var name; //함수레벨 스코프 let name1 = 'abc'; //변수 선언 방법 const name2 = 'abc'; //final (변경 불가능 - 상수) //선언 - 식별자를 등록 //초기화단계 - 값을 위한 공간을 할당하고 식별자랑 연결함.초기화 하지않았다면 undefined console.log(name1); console.log(name2); //식별자(identifier) //변수 //함수 //클래스 //식.. 2020. 11. 12.
20201111_34 flex .flex-container{ display: flex; flex-direction: column-reverse; width: 100%; height: 100vh; background-color: #127cc1; } column쓰면 세로로 row쓰면 옆으로 1 2 3 4 2020. 11. 11.
git_please tell me who you are 어제까지만 해도 잘됐는데 갑자기 안되는겨..! 알고보니 학원컴에는 등록해놓고 노트북에는 이메일이랑 이름등록을 안해서 그런것같다 Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'wotjd@DESKTOP-L1G47LE.(none).. 2020. 11. 11.
728x90
LIST