This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const date1 = new Date(); | |
console.log(date1); | |
// дата передастся по ссылке: | |
// const date2 = date1; | |
// date1.getTime() => timestamp, количество миллисекунд, от 1 янв 1970 | |
// чтобы сделать копию, | |
// можно передать как аргумент дату в конструктор | |
const date2 = new Date(date1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Open Script Editor, change the current language to JavaScript, and paste the following code. | |
* You can also save the script as an app for faster access and run. | |
* | |
* By default, password-protected notes' content will be empty. | |
* For exporting protected notes as well, unlock them first. | |
* | |
* Based on: https://macmost.com/export-all-of-the-notes-on-your-mac-using-a-script.html, | |
* extends it with support for writing non-ASCII characters. | |
*/ |