You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<title>30DaysOfJavaScript: Day 03</title>
</head>
<body style="background-color: black; color: white;">
<h1>30DaysOfJavaScript: Day 03</h1>
<h2>Booleans, undefined, null, date object</h2>
<!-- import your scripts here -->
<script src="main.js"></script>
<script src="level2.js"></script>
</body>
<style>
button{
color: white;
background-color: black;
padding: 5px;
margin: 5px;
border-radius: 6px;
}
</style>
<button onclick="triangleA()">Area of a triangle</button><br>
<button onclick="triangleP()">Perimeter of a triangle</button><br>
<button onclick="rectPA()">Perimeter and area of a rectangle</button><br>
<button onclick="circleA()">Area of a circle</button><br>
<button onclick="calcSlope()">Calculate slope</button><br>
<button onclick="weeklyEarning()">Calculate weekly earnings</button><br>
<button onclick="nameLength()">Is your name long ?</button><br>
<button onclick="compareNames()">Is your first name longer than your last name ?</button><br>
<button onclick="ageCompare()">Age compare</button><br>
<button onclick="canDrive()">Are you allowed to drive ?</button><br>
<button onclick="lifeLength()">How many seconds have you lived ?</button><br>
<button onclick="calendar()">What's the time?</button><br>
</html>