34 lines
1.3 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<title>Day 1</title>
<script src="main.js"></script>
<script src="variable.js"></script>
<script src="datatypes.js"></script>
</head>
<body>
<h1>Day 1: Exercises</h1>
<ul>
<li>Write a single line comment which says, comments can make code readable</li>
<li>Write another single comment which says, Welcome to 30DaysOfJavaScript</li>
<li>Write a multiline comment which says, comments can make code readable, easy to reuse and informative</li>
<li>Create a variable.js file and declare variables and assign string, boolean, undefined and null data types</li>
<li>Create datatypes.js file and use the JavaScript typeof operator to check different data types. Check the data type of each variable</li>
<li>Declare four variables without assigning values</li>
<li>Declare four variables with assigned values</li>
<li>Declare variables to store your first name, last name, marital status, country and age in multiple lines</li>
<li>Declare variables to store your first name, last name, marital status, country and age in a single line</li>
<li>Declare two variables myAge and yourAge and assign them initial values and log to the browser console.</li>
</ul>
</body>
</html>