beginning function to check for date in period and append "th century" etc accordingly
in progress
got it working - charAt checks the last digit of the newly converted string
tidied up code, commented on artPeriod
if statement for adding th etc to dates, coded out for 21, 1 and 11
artPeriod now is artPeriodString, created artPeriod for integer version
commented out if statement, trying again
removed commented out if statement
console logging period variables, all works
new if statement = updates artPeriod variable when last digit is 4,5,6,7,8,9
added else statement for 3rd century
new else statement for 13th century
added else statements for 2, 12, 22 etc
added else statement for 1, 11, 21 etc
addded artPeriod === 6 to first if statement - noticed some items are from 6th century (artPeriodLastDigit checks for 2nd digit, these periods are a single digit)
removed console log, removed single digit 6 artPeriod
added to do - hiding empty data in filters
set up addition of "th century" to artPeriod values of 4 to 9
added if statement for 10, 20, 30 etc