JavaScript
xxxxxxxxxx
let countDownDate = new Date().getTime() + 24 * 60 * 60 * 1000;
let x = setInterval(function() {
let now = new Date().getTime();
let timeLeft = countDownDate - now;
const days = Math.floor( timeLeft/(1000*60*60*24) );
const hours = Math.floor( (timeLeft/(1000*60*60)) % 24 );
const minutes = Math.floor( (timeLeft/1000/60) % 60 );
const seconds = Math.floor( (timeLeft/1000) % 60 );
console.log(days + "d " + hours + "h " + minutes + "m " + seconds + "s ");
if (timeLeft < 0) {
clearInterval(x);
console.log('CountDown Finished');
}
}, 2000);
0d 23h 59m 57s 0d 23h 59m 55s 0d 23h 59m 53s 0d 23h 59m 51s ...
Linux - anc-api-tools 를 설치하는 방법
Linux - curvedns 를 설치하는 방법
Linux - zenmap 를 설치하는 방법
Python - 숫자가 양수, 음수 또는 0인지 확인
C - 정수의 자릿수 계산
C - 동적 메모리 할당을 사용하여 가장 큰 수 찾기
Python - Excel(XLSX) 파일 쓰기
Kotlin - 숫자 뒤집기
C++ - 숫자가 소수인지 여부 확인
Kotlin - 숫자의 계승 구하기
JavaScript - 문자열이 특정 문자로 시작하고 끝나는지 확인
C++ - 윤년 확인
Linux - zstd 를 설치하는 방법
C++ - 몫과 나머지 찾기
Python - 버블 정렬
Java - 숫자 뒤집기
Linux - xbitmaps 를 설치하는 방법
Kotlin - 숫자를 n 소수점 이하 자릿수로 반올림
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month