This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
font-size: 16px; | |
--line: 1px solid #dad3d3 | |
} | |
li { | |
list-style: none | |
} | |
h1 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header,nav,section,div,footer,ul,dd {margin:0;padding:0;} | |
li{list-style: none;} | |
dt { | |
font-weight: bold; | |
font-size: 1.2em; | |
margin-bottom: 5px; | |
} | |
dl { | |
float: left; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Data { | |
constructor(type, value, child) { | |
this.type = type; | |
this.value = value; | |
this.child = child; | |
} | |
} | |
function scan(str) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gpa = (function() { | |
const gpaTable = {'A+': 4.5, A: 4, 'B+': 3.5, B: 3, 'C+': 2.5, C: 2, D: 1, F:0}; | |
let accumulatedScore = {total: 0, major: 0}; | |
let accumulatedCredit = {total: 0, major: 0}; | |
let lectureListArr = []; | |
return { | |
updateScoreAndCredit({major: isMajor, grade, credit}) { //전공여부, 학점, 평점 정보를 계산용 객체에 저장한다 | |
accumulatedScore.total += gpaTable[grade] * credit; | |
accumulatedCredit.total += credit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section-basic-style { | |
background-color: #a6d0d3; | |
padding: 1em; | |
} | |
.visible { | |
display : block!important; | |
} | |
.container { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('script start'); | |
requestAnimationFrame(()=> { | |
console.log("requestanimationframe"); | |
}) | |
const interval = setInterval(() => { | |
console.log('setInterval') | |
}, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"company": "경향신문", | |
"id":1, | |
"logoImgUrl": "https://s.pstatic.net/static/newsstand/up/2017/0424/nsd14372435.png", | |
"newslist": [ | |
"유승민 “문재인 대통령도 특검 수사 대상”", | |
"홍준표 “난 사시미 테러도 당했다···주먹 따윈”", | |
"심상정 “문재인정부 A학점, 하지만···”", | |
"양주 가스폭발···종이에 '미안하다, 화장해달라’", | |
"LG그룹, 검찰 전격 압수수색에 당혹" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//아래처럼 출력되는 getDate함수를 만드세요. | |
//정규표현식을 사용합니다. | |
console.log(getDate("2019-11-2")); | |
//=> Mon Dec 02 2019 00:00:00 GMT+0900 (KST) | |
console.log(getDate("2017-3-1")); | |
console.log(getDate("2014-3-12")); | |
console.log(getDate("2014-3-"));//error | |
console.log(getDate("2014-3-32"));//error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//2초뒤에 'codesquad'가 출력되도록 코드를수정하세요. (출력은 printMyname을 통해서 할 수 있음) | |
//(a,b객체를 직접 부를 수 없음. bind,call 등을 사용해야 함) | |
const a = { | |
run() { | |
setTimeout( ()=> { | |
const name = this.getName(); | |
},1000); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div,header,ul,li,section,nav,footer,h1,h2,h3,h4 {margin:0;padding:0;} | |
li { list-style: none; } | |
a { text-decoration: none;} | |
.header,.mainArea > nav, .mainArea > .content, .newsList > ul{ | |
padding:10px; | |
border: 1px solid #cccaca; | |
} |