일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- DataFrame
- MACS2
- PYTHON
- Git
- python matplotlib
- github
- scRNAseq analysis
- drug development
- single cell rnaseq
- julia
- javascript
- ngs
- CUTandRUN
- Batch effect
- EdgeR
- matplotlib
- 싱글셀 분석
- CUT&RUN
- ChIPseq
- HTML
- CSS
- single cell analysis
- pandas
- cellranger
- scRNAseq
- js
- single cell
- 비타민 C
- Bioinformatics
- drug muggers
Archives
- Today
- Total
바이오 대표
[JS] Object(객체) - key, value, method 본문
Object(객체)는 boolen, number,strin, undefined를 제외한 나머지라 할 수 있다
< Object 기본 구조 >
const ObjectName = {
key : value,
}
const superman = {
name: 'yeji'
age: 25,
}
객체 안에 함수가 들어 갈 수 있고 이 함수를 method 라 칭한다
const ObjectName = {
key : value,
method: function(){
}
}
* ObjectName.method( ); 로 불러낼 수 있다.
* method 안에서 this를 이용할 수 있다
const superman = {
name: 'yeji'
age: 25,
sayHello: function(){
console.log(`Hi, this is ${this.name}`);
}
}
!! 화살표 함수는 this 를 갖지 않는다.
2021.09.28 - [Front_end/JS (Javascript)] - [JS] Function 함수 (함수 선언문, 표현식, 화살표 함수)
'Front_end' 카테고리의 다른 글
[JS] Array(배열) - length, push, pop, unshift, shift (0) | 2021.10.03 |
---|---|
[JS] Object(객체) Methods - assign, keys, values, entries... (0) | 2021.10.01 |
[JS] Function 함수 (함수 선언문, 표현식, 화살표 함수) (0) | 2021.09.28 |
[JS] Operators (연산자) (0) | 2021.09.25 |
[JS] type 변경 - String( ), Number( ), Boolean( ) (0) | 2021.09.24 |