exercises for day 1

pull/862/head
Dzykas 3 years ago
parent 55d8e3dbc0
commit 243607df8f

@ -0,0 +1,9 @@
// comments can make code readable
// Welcome to 30DaysOfJavaScript
/* comments can make code readable,
easy to reuse and informative */
console.log(typeof("string"));
console.log(typeof(true));
console.log(typeof(null));
console.log(typeof(undefined));

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Day 1 Exercise</title>
</head>
<body>
<p>This is the day 1 exercise !</p>
<script src="datatypes.js"></script>
<script src="variable.js"></script>
</body>
</html>

@ -0,0 +1,16 @@
let a = "string";
let b = true;
let c = null;
let d = undefined;
let firstName = "Eligijus";
let lastName = "Dzikavicius";
let isMarried = false;
let age = 17;
let live = "Lithuania"
let myAge = 17;
let yourAge = 30;
console.log("I am " + myAge + " years old.");
console.log("You are " + yourAge + " years old.");
Loading…
Cancel
Save