Canadian Age of majority


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function minAge (province){
  2. if (province == "AB" || province =="MB" || province == "ON" || province =="PE" || province == "QC" || province == "SK"){
  3. return 18;
  4.  
  5. }else{
  6. return 19;
  7. }
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.