본문 바로가기

분류 전체보기

(345)
[JS기초문법] 원시타입 vs 참조타입 원시타입 vs 참조타입원시 타입 (Primitive Types)// 5가지 원시 타입let num = 10; // Numberlet str = 'Hello'; // Stringlet bool = true; // Booleanlet nothing = null; // nulllet notDefined = undefined; // undefined특징: 값 자체가 저장됨let a = 10;let b = a; // 값이 복사됨b = 20; // b만 변경console.log(a); // 10 (변하지 않음)console.log(b); // 20메모리 구조:a: [10]b: [10] → [20]각각 독립적인 공간에 저장function c..
[JS기초문법] for...of, for...in for...of배열을 순회할 때 사용하는 문법const heroes = ['superman', 'batman', 'spiderman']for (let hero of heroes){ console.log(hero);} for...in객체를 순회할 때 사용하는 문법for (let key in person) { console.log(key + ":" + person[key]);}
[Git] Git에 대해서 보호되어 있는 글입니다.
[실용적 유닉스 커맨드] 1. 커맨드 라인이란GUI(그래픽 유저 인터페이스)에 비교해서의 장점효율성 - 마우스보다 빠르다- 여러 작업을 한번에 처리 가능 강력함 - GUI에서 불가능한 작업도 가능- 정확한 제어 가능- 서버 관리에 필수임 보편성- 모든 운체에 사용, 개발 도구들이 CLI 기반- 자동화와 원격 작업 가능- Git, 서버관리, 배포 => 워크플로우 대부분이 커맨드 라인에서 이뤄 2. 프롬프트 이해하기 3. Unix 명령어Unix: 터미널 환경에서 소프트웨어 개발을 더 편리하게 할 수 있게 만들기 위해 개발 1) pwd: 현재 위치 확인Print working directory의 약자 2) ls: 파일 목록 보기- l 하면 long format이라서 상세 정보 보기 가능- a하면 all이라서 숨김 파일 보기 가능 3)..
[HTML] Hero vs Banner Hero- 항상 페이지 최상단에 위치함- 서비스의 첫인상을 줌What it is: The main, top section of a page (usually full-width, often full-height)Purpose: First impression + communicate core value + push a main actionTypical contents:Big headlineSupporting textCTA button (e.g. “Get Started”)Image / illustration👉 Think: “This is what this product/site is about”Banner- 어디든 위치 가능- 공지, 광고, 이벤트 용도로 사용What it is: A smaller promo..
[CSS] reset.css에 대해서 기억할만한 점요새 똑똑한 인간들이 많아서 reset.css 템플릿도 인터넷에 떠돌아댕기더라https://meyerweb.com/eric/tools/css/reset/ CSS Tools: Reset CSSCSS Tools: Reset CSS The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on. The general reasoning behind this was discussed in a May 2007 post, if you're intermeyerweb.com유명 브라우저 업뎃할때마다 조금..
8. 타입 조작하기 보호되어 있는 글입니다.
[JS0] 분수의 덧셈 (GCD, LCM) 문제첫 번째 분수의 분자와 분모를 뜻하는 numer1, denom1, 두 번째 분수의 분자와 분모를 뜻하는 numer2, denom2가 매개변수로 주어집니다. 두 분수를 더한 값을 기약 분수로 나타냈을 때 분자와 분모를 순서대로 담은 배열을 return 하도록 solution 함수를 완성해보세요. 해결1. 이상적 풀이 (최대공약수 구하기)function fnGCD(a, b){ return (a%b)? fnGCD(b, a%b) : b;}function solution(denum1, num1, denum2, num2) { let denum = denum1*num2 + denum2*num1; let num = num1 * num2; let gcd = fnGCD(denum, num); //..