get century of year from year code example Example: century from year javascript function centuryFromYear(year) { return Math.ceil(year/100) }