Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BongJaeChoi/a0b719581d5096222ec4464a90d08d53 to your computer and use it in GitHub Desktop.
Save BongJaeChoi/a0b719581d5096222ec4464a90d08d53 to your computer and use it in GitHub Desktop.
#//객체지향프로그래밍..
##//객체는 무엇인가?? 자바와는 또 다른 문법, 방식!!
###//객체는 이름-값 (name value pair) Map??????
###//그렇다면 이름이나 값 둘중 하나만 알아도 pair가 누구인지 알 수 있겠다!
###//이름 - 값(객체?) 도 가능!!! but 이름 자리에는 자바스크립트 문자열 이 명시! 되어야함
###//사용법은
var work = {
time: "8hour",
isLike:"잘...",
isHard:"매우.."
}
// console.log(work.isHard);
console.log(work[isHard]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment