Computers and Technology

Function _three(string) Create a JavaScript function that meets the following requirements:







Please give your function a descriptive name
o ( _three is not acceptable, and is only displayed here for illustration purposes)
Receives a string as a parameter.
The function returns a Boolean indicating if the parameter string passed, is a valid date
o True indicates a valid date was provided
o False indicates that a valid date was not provided.
A valid date string, will have only the full month name (ex “January” not “Jan”) and a day number
o A year will not be provided and thus your logic need not be concerned in that regard.
The string parameter can contain any number of spaces, but the month name must always start at the
first non-space character from the beginning of the string.
The day number part of the date string to be tested could contain alphabetic characters and thus making
it invalid.
You may assume February only has 28 days in it.
Examples:
_three("January
21"))
_three("Auust 3"))
_three(" June
15B "))
_three("February 0"))
_three(" December 3K1"))
_three("February 29"))
_three("
February
28 "))







true
false
false
false
false
false
true​

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 16:30, saintsfan2004
How to do this programming flowchart?
Answers: 3
image
Computers and Technology, 23.06.2019 20:40, bobby3350
On nba 2k 19, every time i try to join a my park game, it leads ro a website telling my dad that he needs ps plus. i already have ps plus though. how do i fix this?
Answers: 2
image
Computers and Technology, 24.06.2019 07:00, jared2461
Jean has kept the content of her website limited to what is important; she has also ensured that the text follows a particular style and color all throughout her website. which website features has jean kept in mind? jean has limited the content of her website to what is important; this ensures (clarity, simplicity, harmony and unity) of the content. she has also formatted the text in a particular style and color throughout her website, ensuring (balance, simplicity, consistency)
Answers: 2
image
Computers and Technology, 24.06.2019 09:30, nialphonsa
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
Do you know the correct answer?
Function _three(string) Create a JavaScript function that meets the following requirements:
•<...

Questions in other subjects:

Konu
Chemistry, 19.04.2021 16:30