This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const arr = [1, 2, 3, 4, 5]; | |
const upperBoundaryCheck = (value) => { | |
if (value < 10) { | |
return true; | |
} | |
return false; | |
}; | |
const lowerBoundaryCheck = (value) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
font-family: Arial, Helvetica, sans-serif; | |
} | |
.slidecontainer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
font-family: Arial, Helvetica, sans-serif; | |
} | |
.slidecontainer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DateTime birthDay; // Declaring variable 'birthDay' of type 'DateTime' | |
if (DateTime.TryParse(Console.ReadLine(), out birthDay)) // Getting birthdate and initializing it to 'birthDay' | |
{ | |
DateTime today = DateTime.Today; // Getting the current date | |
int age = today.Year - birthDay.Year; //Getting the age | |
if (birthDay > today.AddYears(-age)) age--; // Checking for accuracy of the age | |
Console.WriteLine(age); // Displaying the current age | |
Console.WriteLine(age + 10); // Displaying the age after 10 years | |
} | |
else |