So I am learning JavaScript/jQuery and I need some help.
Basically I have a array, converted from an Excel table below
Name Sun Mon Tues Wed Thurs Fri Sat
John x 21:00 21:00 21:00 21:00 21:00 x
Smith x 19:45 19:45 19:45 19:45 19:45 x
Paul x 19:45 19:45 19:45 19:45 19:45 11:00
"Name", "Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat",
"John", "x", "21:00", "21:00", "21:00", "21:00", "21:00", "x",
"Smith", "x", "19:45", "19:45", "19:45", "19:45", "19:45", "x",
"Paul", "x", "19:45", "19:45", "19:45", "19:45", "19:45", "11:00"
What I want:
A function when given a input of "John, Monday" or "John, 27/02/2017", will return "21:00".
Any sample code is highly appreciated, as I am fairly new to this.