JavaScript날짜getSeconds

getSeconds날짜

초(0~59)를 반환합니다.

문법

date.getSeconds()

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

const
new
console
getSeconds
const date = new Date();
console.log(date.getSeconds());   // current second (0-59)