Separate current year and current century

Separate current year and current century

I'm getting the current year like this:

  1. var currentDate = new Date();
  2. var currentYear = currentDate.getFullYear();
How can I get the current century out of currentYear?

Thanks