This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>This Will Reload Forever</title> | |
</head> | |
<p style="display: none"> |
This file contains 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 ageSpan = document.querySelector("#age"); | |
const birthDate = new Date("17 September 2000"); | |
const today = new Date(); | |
if (today.getMonth() > birthDate.getMonth() && today.getDate() > birthDate.getDate()) { | |
ageSpan.innerText = today.getFullYear() - birthDate.getFullYear(); | |
} else { | |
ageSpan.innerText = (today.getFullYear() - birthDate.getFullYear()) - 1; | |
} |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>GET WORK DONE !!</title> | |
<style> | |
main{ | |
position:absolute; | |
bottom:30%; | |
left:15%; | |
font-size:50px; |