diff --git a/solutions/day-1/datatypes.js b/solutions/day-1/datatypes.js new file mode 100644 index 0000000..b2ffb74 --- /dev/null +++ b/solutions/day-1/datatypes.js @@ -0,0 +1,4 @@ +console.log(typeof('satya') ); +console.log(typeof(20) ); +console.log(typeof(null) ); +console.log(typeof(undefined) ); \ No newline at end of file diff --git a/solutions/day-1/level.js b/solutions/day-1/level.js index de88829..0f562af 100644 --- a/solutions/day-1/level.js +++ b/solutions/day-1/level.js @@ -1 +1,26 @@ -console.log("Hello World!"); \ No newline at end of file +// 1.question + //Comments can make code readable +// 2.question + //Welcome to 30DaysOfJavaScript +// 3.question +/* + Comments can make code readable, + easy to reuse and informative +*/ +// 6.question +let a, b, c, d; +// 7.question +let name = 'satya', + age = 20, + married = false, + id = 1; +// 8.question 9.question +let firstName = 'satya', + lastName = 'surendra', + maritalStatus = false, + country = 'Indian', + myage = 20; +// 10.question +let myAge = 20, + yourAge = 21; +console.log(myAge,yourAge); \ No newline at end of file diff --git a/solutions/day-1/variable.js b/solutions/day-1/variable.js new file mode 100644 index 0000000..3f6feaa --- /dev/null +++ b/solutions/day-1/variable.js @@ -0,0 +1,4 @@ +let name = 'satya', + maritalStatus = false, + abc = undefined, + cbd = null;