diff --git a/solutions/day-01/datatypes.js b/solutions/day-01/datatypes.js new file mode 100644 index 0000000..f58bfda --- /dev/null +++ b/solutions/day-01/datatypes.js @@ -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)); \ No newline at end of file diff --git a/solutions/day-01/index.html b/solutions/day-01/index.html new file mode 100644 index 0000000..7383d10 --- /dev/null +++ b/solutions/day-01/index.html @@ -0,0 +1,13 @@ + + + + + + Day 1 Exercise + + +

This is the day 1 exercise !

+ + + + \ No newline at end of file diff --git a/solutions/day-01/variable.js b/solutions/day-01/variable.js new file mode 100644 index 0000000..6e4dd6a --- /dev/null +++ b/solutions/day-01/variable.js @@ -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."); \ No newline at end of file