diff --git a/solutions/day-03/index.html b/solutions/day-03/index.html index 8b5a467..e1c7bf1 100644 --- a/solutions/day-03/index.html +++ b/solutions/day-03/index.html @@ -20,7 +20,7 @@ background-color: black; padding: 5px; margin: 5px; - border-radius: 7px; + border-radius: 6px; }
diff --git a/solutions/day-03/level2.js b/solutions/day-03/level2.js index 82de494..0b093af 100644 --- a/solutions/day-03/level2.js +++ b/solutions/day-03/level2.js @@ -94,5 +94,5 @@ const month = now.getMonth() + 1; const date = now.getDate(); const hours = now.getHours(); const minutes = now.getMinutes(); -alert(`${currentYear}-${month}-${day} ${hours}:${minutes}`) +alert(`${currentYear}-${month}-${day} ${hours}:${minutes}`); } diff --git a/solutions/day-03/main.js b/solutions/day-03/main.js index d86df53..c99d4c7 100644 --- a/solutions/day-03/main.js +++ b/solutions/day-03/main.js @@ -1,49 +1,49 @@ -let firstName = "Eligijus" -let lastName = "Dzikavicius" -let country = "Lithuania" -let city = "Kupiskis" -let age = "17" -let isMarried = false -let year = "2023" +let firstName = "Eligijus"; +let lastName = "Dzikavicius"; +let country = "Lithuania"; +let city = "Kupiskis"; +let age = "17"; +let isMarried = false; +let year = "2023"; -console.log(parseInt("10")) -console.log(parseInt("9.8")) +console.log(parseInt("10")); +console.log(parseInt("9.8")); -let truthy1 = 12 // truthy -let truthy2 = "string" // truthy -let truthy3 = true // truthy +let truthy1 = 12; // truthy +let truthy2 = "string"; // truthy +let truthy3 = true; // truthy -let falsy1 = 0 // falsy -let falsy2 = "" // falsy -let falsy3 = null // falsy +let falsy1 = 0; // falsy +let falsy2 = ""; // falsy +let falsy3 = null; // falsy -console.log(4 > 3) // true -console.log(4 >= 3) // true -console.log(4 < 3) // false -console.log(4 <= 3) // false -console.log(4 == 4) // true -console.log(4 === 4) // true -console.log(4 != 4) // false -console.log(4 !== 4) // false -console.log(4 != '4') // false -console.log(4 == '4') // true -console.log(4 === '4') // false -console.log("python".length != "jargon".length) // false +console.log(4 > 3); // true +console.log(4 >= 3); // true +console.log(4 < 3); // false +console.log(4 <= 3); // false +console.log(4 == 4); // true +console.log(4 === 4); // true +console.log(4 != 4); // false +console.log(4 !== 4); // false +console.log(4 != '4'); // false +console.log(4 == '4'); // true +console.log(4 === '4'); // false +console.log("python".length != "jargon".length); // false // All correct ! -const now = new Date() -const currentYear = now.getFullYear() -const month = now.getMonth() + 1 -const date = now.getDate() -const day = now.getDay() + 1 -const hours = now.getHours() -const minutes = now.getMinutes() -const seconds = now.getSeconds() -const allTime = now.getTime() +const now = new Date(); +const currentYear = now.getFullYear(); +const month = now.getMonth() + 1; +const date = now.getDate(); +const day = now.getDay() + 1; +const hours = now.getHours(); +const minutes = now.getMinutes(); +const seconds = now.getSeconds(); +const allTime = now.getTime(); -console.log(`The current year is ${currentYear}`) -console.log(`The current month is ${month}`) -console.log(`The current date is ${date}`) -console.log(`The current day of the week is ${day}`) -console.log(`The current time is ${hours}:${minutes}:${seconds}`) -console.log(`The amount of seconds passed since Jan 1, 1970 is ${allTime}`) +console.log(`The current year is ${currentYear}`); +console.log(`The current month is ${month}`); +console.log(`The current date is ${date}`); +console.log(`The current day of the week is ${day}`); +console.log(`The current time is ${hours}:${minutes}:${seconds}`); +console.log(`The amount of seconds passed since Jan 1, 1970 is ${allTime}`);