자주 쓰는 문형
<audio> 태그 안에서 일어나는 일
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
What this line of code will do behind the scenes is
it will actually construct an HTMLAudioElement.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement
This HTMLMediaElement that we create has a whole bunch of properties and methods.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement
여기에서 play( ) 메소드를 찾을 수 있다.
audio 문형이 constructor function 과 비슷하다.
audio 문형을 풀어서 constructor function 으로 이렇게 바꿔 볼 수 있다.
'Java Script > JS basic' 카테고리의 다른 글
JS] 오브젝트란? / Constructor function (0) | 2021.08.28 |
---|---|
JS] this (0) | 2021.08.27 |
JS] debugger; 알아보기 (0) | 2021.08.26 |
JS] 계산기 / higher Order Functions and Passing Functions as Arguments (0) | 2021.08.26 |
JS] anonymous function 익명 함수 (0) | 2021.08.25 |
댓글