JavaScript? ?? ? ?? ??
JavaScript? ?? ? ?? ??? ?? Date ??? ?????. ????? ?? ? ?? ?? ???? ??? ???? ???? ??? ??? ?????.
1. ?? ?? ??
Date ??? ??? ???? ??? ? ????.
?. ?? ?? ? ??
const now = new Date(); console.log(now); // Current date and time
?. ?? ?? ? ??
const specificDate = new Date("2023-12-31T23:59:59"); console.log(specificDate); // Output: 2023-12-31T23:59:59.000Z
?. ?, ?, ? ?? ??
const date = new Date(2023, 11, 31, 23, 59, 59); // Month is zero-based (11 = December) console.log(date); // Output: Sun Dec 31 2023 23:59:59
?. ?????
?? ??? ?????(UTC 1970? 1? 1? ??? ???)? ???? ???? ? ????.
const timestamp = new Date(0); console.log(timestamp); // Output: Thu Jan 01 1970 00:00:00 UTC
2. ?? ? ?? ???? ????
Date ??? ??? ?? ??? ???? ???? ?????.
- ??: getFullYear()
- ?: getMonth()(0-11, ??? 0? 1?)
- ???: getDate()
- ??: getDay() (0-6, ??? 0? ???)
- ??: getHours()
- ?: getMinutes()
- ?: getSeconds()
- ???: getMilliseconds()
?:
const now = new Date(); console.log(now.getFullYear()); // Output: Current year console.log(now.getMonth()); // Output: Current month (0-based) console.log(now.getDate()); // Output: Current day of the month console.log(now.getDay()); // Output: Current day of the week console.log(now.getHours()); // Output: Current hour
3. ?? ? ?? ??
setter ???? ???? ??? ?? ????? ??? ? ????.
- ?? ??: setFullYear(?)
- ? ??: setMonth(?)
- ?? ??: setDate(?)
- ?? ??: setHours(??)
- ? ??: setMinutes(?)
?:
const date = new Date(); date.setFullYear(2025); date.setMonth(11); // December date.setDate(25); console.log(date); // Output: A modified date
4. ?? ? ?? ?? ??
?. toISOString()
ISO 8601 ???? ??? ?????.
const now = new Date(); console.log(now.toISOString()); // Output: 2023-12-31T23:59:59.000Z
?. toLocaleString()
??? ??? ???? ???? ?????.
const now = new Date(); console.log(now.toLocaleString("en-US")); // Output: MM/DD/YYYY, HH:MM:SS AM/PM console.log(now.toLocaleString("de-DE")); // Output: DD.MM.YYYY, HH:MM:SS
?. toDateString() ? toTimeString()
- toDateString(): ?? ??? ?????.
- toTimeString(): ?? ??? ?????.
const now = new Date(); console.log(now.toDateString()); // Output: Wed Dec 31 2023 console.log(now.toTimeString()); // Output: 23:59:59 GMT+0000
5. ?? ?? ??
??? ?????? ???? ??? ??? ? ????.
?:
const date1 = new Date("2023-12-31"); const date2 = new Date("2024-01-01"); const difference = date2 - date1; // Difference in milliseconds console.log(difference / (1000 * 60 * 60 * 24)); // Output: 1 day
6. ?? ??
?? ???? ???? ??? ?????.
?:
const now = new Date(); console.log(now); // Current date and time
7. ??? ??
?. UTC ??
- getUTCFullYear(), getUTCMonth(), getUTCDate() ?? ?? ??? UTC? ?????.
const specificDate = new Date("2023-12-31T23:59:59"); console.log(specificDate); // Output: 2023-12-31T23:59:59.000Z
?. ???? ??
?? ??? ??? ?? moment.js ?? date-fns? ?? ?????? ?????.
8. ????? ??
?. ?? ?????
Date.now() ???? ?? ?????? ??? ??? ?????.
const date = new Date(2023, 11, 31, 23, 59, 59); // Month is zero-based (11 = December) console.log(date); // Output: Sun Dec 31 2023 23:59:59
?. ??? ?????? ??
.getTime() ???? ?????.
const timestamp = new Date(0); console.log(timestamp); // Output: Thu Jan 01 1970 00:00:00 UTC
9. ??
- Date ??? ??? ??? ???? ? ?????.
- getter ? setter ???? ???? ?? ?? ??? ????? ?????.
- toISOString() ? toLocaleString()? ?? ?? ?? ??? ???? ?? ??? ??????.
- ?? ??? ?? moment.js ?? date-fns? ?? ?? ????? ??? ??? ???.
JavaScript? ?? ? ?? ??? ????? ?? ?? ??, ????? ? ???? ??? ??????? ??????.
?????. ?? Abhay Singh Kathayat???!
?? ?????? ??? ?? ??? ?? ?? ??? ?? ??? ??????. ?? ????? ?? ???? ??? ???? ??????? ???? ?? ??? ????? ??? ?????? ???? ?????.
? ???? ???? kaashshorts28@gmail.com?? ???? ?????.
? ??? JavaScript? ?? ? ?? ?? ?????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











Java ? JavaScript? ?? ?? ????? ??? ?? ?? ?? ???? ????? ?????. Java? ??? ? ??? ?????? ??? ???? JavaScript? ?? ? ??? ??? ?????.

JavaScriptCommentsareEnsentialformaining, ?? ? ???? 1) Single-LinecommentsERUSEDFORQUICKEXPLANATIONS.2) Multi-linecommentSexplaincleClexLogicOrprovidedEdeDDocumentation.3) inlineecommentsClarifySpecificPartSofcode.bestPractic

JavaScript?? ??? ??? ?? ? ? ?? ??? ???????. 1. ?? ??? ??? ???? ?? ??? ????. ISO ?? ???? ???? ???? ???? ?? ????. 2. ?? ??? ?? ???? ??? ?? ???? ??? ? ??? ? ?? 0?? ????? ?? ??????. 3. ?? ?? ???? ???? ???? ?? ?????? ??? ? ????. 4. Luxon? ?? ???? ???? ?????? ???? ?? ????. ??? ?? ???? ????? ???? ??? ????? ?? ? ????.

JavaScriptIspreferredforwebDevelopment, whithjavaisbetterforlarge-scalebackendsystemsandandandoidapps.1) javascriptexcelsincreatinginteractivewebexperiences withitsdynatureanddommanipulation.2) javaoffersstrongtypingandobject-Orientededededededededededededededededdec

TAGGSATTHEBOTTOMOFABLOGPOSTORWEBPAGESERVESPRACTICALPURSEO, USEREXPERIENCE, andDESIGN.1.ITHELPSWITHEOBYOWNSESPORENGENSTOESTOCESKESKERKESKERKERKERDER-RELEVANTTAGSWITHOUTHINGTEMAINCONTENT.2.ITIMPROVESEREXPERKEEPINGTOPONTEFOCUSOFOFOFOCUSOFOFOFOCUCUSONTHEATECLL

javascriptassevenfundamentalDatatatypes : ??, ???, ??, unull, ??, ? symbol.1) ?? seAdouble-precisionformat, ??? forwidevaluerangesbutbecautiouswithfatingfointarithmetic.2) stringsareimmutable, useefficientconcatenationmethendsf

??? ?? ? ??? DOM?? ??? ??? ? ?????. ??? ?? ????? ?? ??????, ??? ?? ???? ?? ????????. 1. ??? ??? addeventListener? usecapture ?? ??? true? ???? ?????. 2. ??? ??? ?? ???? usecapture? ???? ????? ?????. 3. ??? ??? ??? ??? ???? ? ??? ? ????. 4. ??? ?? ?? ?? ??? ?? ??? ??????? ??? ???? ?????. 5. ??? ?? ?? ?? ??? ?? ???? ?? ???? ? ??? ? ????. ? ? ??? ???? ???? JavaScript? ??? ??? ??? ????? ???? ???? ??? ??????.

Java? JavaScript? ?? ????? ?????. 1. Java? ???? ???? ??? ? ??? ?????? ?????? ? ?? ???? ?????. 2. JavaScript? ?? ? ?? ?? ? ??? ?? ??? ???? ??? ? ?? ? ?? ?????.
