CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 12:30:06 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=4abbfefe02a7bd3daeee7f3169f56014a259b54cab944770799754bb602019c4a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22FZU_ftOYpN_Meyb9rkPiMG-zwTEixsG2%22%3B%7D; HttpOnly; Path=/
cf-ray: 98ce5deb3e6fc7d4-BLR
Nex Day без Date - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //6 Exercise: Basic Syntax, Conditional Statements and Loops/More Exercise/03. Next Day.js
- nextDay1 = (year, month, day) => {
- 'use strict'
- let yearNext = year
- let monthNext = month
- let dayNext = day
- if (year <= 99 && year >= 0)
- yearNext += 1900
- const isLeapYear = (year) => ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0) ? true : false
- let months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
- if (isLeapYear(year))
- months[1] = 29
- if (month === 12 && day === 31) {
- yearNext = ++yearNext
- monthNext = 1
- dayNext = 1
- } else if (day === months[month - 1]) {
- monthNext = ++month
- dayNext = 1
- } else {
- dayNext = ++day
- }
- console.log(`${yearNext}-${monthNext}-${dayNext}`)
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
✅ Make $2500 in 20 minutes⭐⭐⭐ 2
JavaScript | 4 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ 4
JavaScript | 4 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 5 sec ago | 0.24 KB
-
✅⭐ Make $2500 in 15 minutes ✅ NEVER SEEN BEFO...
JavaScript | 14 sec ago | 0.24 KB
-
⭐⭐Exchange Exploit⭐⭐ 1
JavaScript | 15 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ C
JavaScript | 15 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 4
JavaScript | 26 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ A
JavaScript | 26 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand