Given the year, print out the century: javascript code example
Example: century from year javascript
function centuryFromYear(year) {
return Math.ceil(year/100)
}
function centuryFromYear(year) {
return Math.ceil(year/100)
}