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
| <button onclick="delRecords()"> Delete All </button> |
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
| function delRecords() { | |
| if( confirm ("Are you sure you wish to delete all? ") === true ) { | |
| //something magical happens here | |
| } | |
| } |
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
| if( confirm("I am above 18 years") === true ){ | |
| //proceed | |
| }else{ | |
| window.location.assign("./"); | |
| } |
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
| function calcDate(date1, date2){ | |
| /* | |
| * calcDate() : Calculates the difference between two dates | |
| * @date1 : "First Date in the format MM-DD-YYYY" | |
| * @date2 : "Second Date in the format MM-DD-YYYY" | |
| * return : Array | |
| */ | |
| } |
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
| function calcDate(date1, date2){ | |
| /* | |
| * calcDate() : Calculates the difference between two dates | |
| * @date1 : "First Date in the format MM-DD-YYYY" | |
| * @date2 : "Second Date in the format MM-DD-YYYY" | |
| * return : Array | |
| */ | |
| //new date instance | |
| const dt_date1 = new Date(date1); | |
| const dt_date2 = new Date(date2); |
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
| function calcDate(date1, date2){ | |
| /* | |
| * calcDate() : Calculates the difference between two dates | |
| * @date1 : "First Date in the format MM-DD-YYYY" | |
| * @date2 : "Second Date in the format MM-DD-YYYY" | |
| * return : Array | |
| */ | |
| //new date instance | |
| const dt_date1 = new Date(date1); | |
| const dt_date2 = new Date(date2); |
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
| function calcDate(date1, date2){ | |
| /* | |
| * calcDate() : Calculates the difference between two dates | |
| * @date1 : "First Date in the format MM-DD-YYYY" | |
| * @date2 : "Second Date in the format MM-DD-YYYY" | |
| * return : Array | |
| */ | |
| //new date instance | |
| const dt_date1 = 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
| function calcDate(date1, date2){ | |
| /* | |
| * calcDate() : Calculates the difference between two dates | |
| * @date1 : "First Date in the format MM-DD-YYYY" | |
| * @date2 : "Second Date in the format MM-DD-YYYY" | |
| * return : Array | |
| */ | |
| //new date instance | |
| const dt_date1 = 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
| function calcDate(date1, date2){ | |
| /* | |
| * calcDate() : Calculates the difference between two dates | |
| * @date1 : "First Date in the format MM-DD-YYYY" | |
| * @date2 : "Second Date in the format MM-DD-YYYY" | |
| * return : Array | |
| */ | |
| //new date instance | |
| const dt_date1 = 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
| function calcDate(date1, date2){ | |
| /* | |
| * calcDate() : Calculates the difference between two dates | |
| * @date1 : "First Date in the format MM-DD-YYYY" | |
| * @date2 : "Second Date in the format MM-DD-YYYY" | |
| * return : Array | |
| */ | |
| //new date instance | |
| const dt_date1 = new Date(date1); |