There are cases where you want the destructured variable to have a different name than the property name.
| CARVIEW |
Select Language
HTTP/2 301
date: Thu, 22 Jan 2026 20:48:12 GMT
content-type: text/html; charset=UTF-8
location: https://javascriptsource.com/page/11/
x-fw-version: 5.0.0
x-fw-server: Flywheel/5.1.0
x-xss-protection: 1
x-redirect-by: WordPress
x-content-type-options: nosniff
x-fw-dynamic: TRUE
x-fw-hash: x4u4abmr3y
referrer-policy: no-referrer-when-downgrade
server: cloudflare
accept-ranges: bytes
x-served-by: cache-bom-vanm7210054-BOM, cache-bom-vanm7210093-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1769114892.614603,VS0,VE1031
x-fw-serve: TRUE
x-fw-static: NO
x-fw-type: VISIT
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=AgWk21UAzdgmfcZMOZ7jVN%2B4aCgtf6UG8Y%2BsdWDhlk7up6FX5gFt3ZdeW7tOgfNRdmOdb9ogEEFL3GBTj9UU1GQr8vV7TzFZyN%2By9hGP1is8EeKQ"}]}
cf-ray: 9c21e9285c25ff9d-BOM
alt-svc: h3=":443"; ma=86400
HTTP/2 200
date: Thu, 22 Jan 2026 20:48:13 GMT
content-type: text/html; charset=UTF-8
x-fw-version: 5.0.0
x-xss-protection: 1
x-fw-server: Flywheel/5.1.0
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=yrZWB5KhR82r2J2ESD8j2%2FX58ulW2X9XsqRp5L4rK3GoPmN6L%2B7w7JfRlDRkbwksBt%2Bwv%2FnGGMwtAdVcOb4q9E8b7kNccTpcO%2BzrzZ1bwDKChAzw"}]}
link: ; rel="https://api.w.org/"
x-content-type-options: nosniff
x-fw-hash: x4u4abmr3y
x-fw-dynamic: TRUE
referrer-policy: no-referrer-when-downgrade
server: cloudflare
x-cacheable: YES
fastly-restarts: 1
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
x-served-by: cache-bom-vanm7210094-BOM, cache-bom-vanm7210093-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1769114893.664051,VS0,VE1022
vary: Accept-Encoding
x-fw-serve: TRUE
x-fw-static: NO
x-fw-type: VISIT
cf-cache-status: DYNAMIC
content-encoding: gzip
cf-ray: 9c21e92efab0ff9d-BOM
alt-svc: h3=":443"; ma=86400
JavaScriptSource - Page 11 of 36 - Search 5,000+ Free JavaScript Snippets

Transform the items in an array and create a new one
Filter out matching array elements
Count elements in an array
Create a new array from an existing one
Capitalize the first letter of every word in a string
Get unique values in an array
Delete, replace, and add items to an array at specific indexes

The Array.splice() method accepts three arguments: start, delete, and items. The first, start, is the index of the item you want to modify in the array. It’s the only required argument. The second, delete, is the number of items to delete from the array. If you omit this argument, the Array.splice() method will remove every item from the start index on. If you set it to 0, […]
Two ways to remove a specific item in an array
Calculate the difference (in hours) between two dates
- « Go to Previous Page
- Go to page 1
- Interim pages omitted …
- Go to page 9
- Go to page 10
- Go to page 11
- Go to page 12
- Go to page 13
- Interim pages omitted …
- Go to page 36
- Go to Next Page »









