TerryEHLee 2023. 5. 4. 20:31

Today I Studied

  • PS: Programmers/코딩기초트레이닝/Day2,3
  • Programmers/코딩테스트입분/Day15
  • JS 공식문서
    Guides/Getting started with the web
    • HTML basics
    • CSS basics
    • JavaScript Basics
  • JS handbook
    Part5. 객체 기본문법
    • 객체

Today I Learned

  • Object.hasOwnProperty(): method, Object 안에 값을 가지고 있을 경우 true를 반환
const object1 = {};
object1.property1 = 42;
console.log(object1.hasOwnProperty('property1'));
// Expected output: true

console.log(object1.hasOwnProperty('toString'));
// Expected output: false

console.log(object1.hasOwnProperty('hasOwnProperty'));
// Expected output: false
  • padding, margin, border
    • padding: 내용물과 border 사이 거리
    • border: 내용물을 감싸는 테두리
    • margin: 전체 페이지와 테두리 사이 거리

🕰️ 오늘의 공부 시간: 7:13